Answers for "template name in wordpress"

PHP
1

get template name wordpress

get_page_template_slug()

if (get_page_template_slug() =='page-workflow.php' ) {
  //stuff
}
Posted by: Guest on April-15-2020
1

wordpress define template name

/*on top of Php file add the below line to make as custom template*/

<?php /* Template Name: Custom template name */ ?>
Posted by: Guest on December-11-2020

Code answers related to "template name in wordpress"

Browse Popular Code Answers by Language