Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get template name wordpress

get_page_template_slug()

if (get_page_template_slug() =='page-workflow.php' ) {
  //stuff
}
 
PREVIOUS NEXT
Tagged: #template #wordpress
ADD COMMENT
Topic
Name
9+9 =