Support » Themes and Templates » is_page () to check if a specific template is displayed

  • I want a conditional statement which checks if a user template and not the default template is in use for the displayed page. If the user template “yourname.php” is in use, it want different code executed than if “page.php” is in use.

    If the Template is called “yourname”, will is_page('yourname') return a true?

    Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘is_page () to check if a specific template is displayed’ is closed to new replies.