Support » Alpha/Beta/RC » is_page_template(‘template_name’) won’t work in header.php

  • Resolved sepiamystery

    (@sepiamystery)


    I am using 2.5 beta release and trying to work with custom page templates.

    So I’m trying to use is_page_template(‘works’) in header.php, but it doesn’t work. is_page_template() is working fine however.

    I had some trouble getting the template file to show up under Page Template dropdown of admin. But after a few refreshes it worked.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is_page_template(‘template_name’) won’t work in header.php’ is closed to new replies.