Support » Fixing WordPress » New WordPress 4.9 is not showing my page templates

  • Hey Guys,
    I’m working on a custom WordPress theme I created from scratch.

    As yesterday November 15, 2017 I was able to create new page template in WordPress, everything was working great, just a simple page template using the following syntax:

    <?php /* Template Name: My Template */ ?>
    <?php get_header(); ?>
    <?php get_footer(); ?>

    And saving the page as: page-mytemplatename.php

    Today November 16, 2017 I came in this morning and updated my WordPress platform to 4.9 and now I cannot see my page templates in the drop-down menu in the dashboard. Can someone help me with this? I uploaded all my templates using FTP and I’m seeing them but they are not showing up, am I missing something? Help please!!! Thanks

    -Ruben

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steve Stern

    (@sterndata)

    Guardian of the Interwebs

    Dima Stefantsov

    (@dima-stefantsov)

    Thank you!

    Ramzii

    (@ramzii)

    Thank you Steve!

    ibrahimfaisal

    (@ibrahimfaisal)

    Just write Template Name instead of Template in your style.css file.

    Moderator Steve Stern

    (@sterndata)

    Guardian of the Interwebs

    @ibrahimfaisal, that is incorrect. For a global template, the proper comment is Template Name:

    In a style.css file, “Template:” is used to provide a link to a parent theme.

    • This reply was modified 1 month ago by  Steve Stern.

    Hi,

    Using WordPress 4.9.2 or 4.9.4, page templates do not show up. Installing the plug-in “WP Clear File Cache” by “Be Seismic” and clearing the cache does nothing.

    My site is set up as a multi-user WordPress. It also uses Woocommerce multi-language. It uses a custom theme. The page templates are called page-jfgallerya.php and page-jfgalleryc.php. Giving them another name does not help.

    I have just reverted to WordPress 4.8.5 and the page templates menu has reappeared.

    In response to ticket 42573.

    Thank you,

    Jf

    • This reply was modified 1 week, 5 days ago by  jfclemay.
    • This reply was modified 1 week, 5 days ago by  jfclemay.
    Moderator Steve Stern

    (@sterndata)

    Guardian of the Interwebs

    @jfclemay, if you need support then per the forum welcome please create your own new forum post. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New WordPress 4.9 is not showing my page templates’ is closed to new replies.