• 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

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What do you have in the comments at the top of those templates? You need something like

    *
    * Template Name: My Special Template
    *
    Thread Starter Jean-Francois C. Lemay

    (@jfclemay)

    Hi Steve,

    My templates start with:

    <?php
    /*
    Template Name: Jflemay gallery A page
    */
    ?>

    Then <?php get_header() ?> etc.

    Thank you,

    Jf

    Hi Steve and jfclemay,

    I have exactly the same issue.
    Using information from: https://developer.www.ads-software.com/themes/template-files-section/page-template-files/

    On top of custom-page.php in my themes folder:
    <?php /* Template Name: Example Template */ ?>

    When i’m editing this page on the page-attribute section there is no Template dropdown. I’m using the most recent WP version (4.9.4) with a single WordPress installation.

    I found out what was causing the issue.
    I didn’t have a index.php file in my themes folder. By adding this it fixxed my issue.

    Maybe you are missing one of the required theme files?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

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

    Thread Starter Jean-Francois C. Lemay

    (@jfclemay)

    Hi,

    I think I’ve found the solution. I tried “Yesyesno”‘s suggestion above, but I did have an index.php file in my theme folder. However, my theme’s style.css file had a “TEMPLATE: Jflemay” line in the comments at the start of the file. The name of the theme is also Jflemay. For this reason (I think), the theme was active but did not appear as an installed theme in the WordPress Multi-site themes page. After removing the “TEMPLATE:” part, the theme appeared in the Multi-site themes page. I activated it, applied it to my site, and then pages restarted to show the page templates.

    I also renamed the page templates from “page-jfgallerya” to “page_jfgallerya”, etc., so that WordPress wouldn’t attempt to apply them automatically to a page called “jfgallerya”.

    So I am now using WordPress 4.9.4 and it works.

    Thank you,

    Jf

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