• Resolved jdmnomad

    (@jdmnomad)


    Hello, I’ve been having an issue with the page template section under the page attributes area of the edit pages area in the dashboard. My issue is, I’m no longer seeing the page template option under page attributes, only seeing the parent page option and order options.

    I recently upgraded from 4.8 something to 5.2.2 then earlier this week 5.3.2
    I’ve tried downloading the classic editor but it doesn’t give the option to select a page template. I’m trying to get the page template area to show up because my site is built on top of underscores and I used Advanced Custom Fields (ACF) to map the code to user input so that what the user puts into the fields in the dashboard would populate the content section of the pages on the site.

    I’m however not able to find one of my page’s content section and wanted to examine the relationship between the ACF and the WP pages I coded to form the template. As I said though, in the page editor section, I’m no longer able to select any page templates, just the option for parent pages and order.

    Please help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are you saying that you used to see the Page Template selector and now you don’t?
    Did you change your theme?
    The Page Template selector is populated from the available page templates in the current theme. If there are none, the selector is not shown.
    The page template file has to have the correct comment at the top in order to be found and shown in the selector.

    Page templates have nothing to do with custom fields.

    Thread Starter jdmnomad

    (@jdmnomad)

    Hello Joy. Thank you for replying so quickly!

    “Are you saying that you used to see the Page Template selector and now you don’t?”

    Yes, that’s what I’m saying when I built the pages they all had the template declaration comment at the very top of their pages.

    “Did you change your theme?”

    No, I’ve not changed the theme since I built the site. I’ve been steadily adding pages using the page-nameofpage convention since I built the site with its first set of pages in 2016. It’s only since recently I’ve had this page issue, where that specific page’s content isn’t showing. Underscores is the underlying WordPress theme, and I built everything up from there.

    “Page templates have nothing to do with custom fields.”

    Yes, I’m aware, but wanted to give some context about the issue.

    when I built the pages they all had the template declaration comment at the very top of their pages.
    I’ve been steadily adding pages using the page-nameofpage convention

    Do they still have the comment? It works on my WP 5.3.2.
    Naming your template files as page-pageslug.php will make them use that template due to the Template Hierarchy, and they don’t have to have a comment at the top. But the comment is needed to show it in the Page Template selector.

    Thread Starter jdmnomad

    (@jdmnomad)

    Do they still have the comment? It works on my WP 5.3.2.

    Yes, all my pages have the comment section at the top.

    Perhaps you should try the Health Check plugin in Troubleshoot mode, which can disable plugins and theme for your user only, in order to isolate if it behaves differently with a different theme or no plugins.

    Thread Starter jdmnomad

    (@jdmnomad)

    In running the site health check it gave a few recommendations.
    This one stood out to me, do you think the issue could be with the cache?

    The scheduled event, wp_cache_gc, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    Thread Starter jdmnomad

    (@jdmnomad)

    I have another issue, After running the site check, going into troubleshoot mode, the debugger said the stylesheet was missing, and when I came out of the debug mode to select my theme that was built for the site it went to the 2020 theme, saying it’s not allowing me to load the other theme since it is ‘broken’.

    This is frustrating. In running this thing I’ve not gotten another issue that wasn’t there before. Any idea what to do here? Do I just replace the stylesheet in the theme folder?

    Marius, the author of Health Check says:

    TS Mode doesn’t touch your theme files, if core says the styesheet is missing from the users theme, it would have been missing in the first place, and they may be better served re-uloading it, or double-checking permissions

    Thread Starter jdmnomad

    (@jdmnomad)

    Hi, Joy.
    Thank you for that reply!
    I actually did the same, thanks for that assist.
    In re-uploading the stylesheet the problem I was having with the templates not showing up was also fixed. Such a relief!

    Thanks again for the help on this. I actually figured it out on the same day after your initial mention of using health check. Just got a bit busy with work so couldn’t reply.

    Thank you very much again.

    Thread Starter jdmnomad

    (@jdmnomad)

    All is well again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cant find Page Template under Page attributes after upgrading to 5.3.2’ is closed to new replies.