• Ahoj!

    i built several custom templates for pages and could use them in my theme, so some subpages have the right custom pages templates. All of the sudden the option to use them is missing – only the default template can be found by get_page_templates(). i didn’t update or delete anything from my content themes folder.
    >> edit-page-form.php:
    function page_template_meta_box($post){ ***only the Default template is found***}

    surprisingly my earlier built subpages still work fine with the custom templates.

    my questions:
    where and how does get_page_templates() check for the templates?
    is there an ID linking the subpage to the custom page template? i checked the database without success. (only found parent page ID)

    thank you for your help.
    Luise

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m not directly answering your questions, but you might try changing to the WordPress Default theme, then change back. Can’t explain why that has worked ??

    Thread Starter Luise1974

    (@luise1974)

    @michaelh
    thankyou it worked.

    but there’s one question still open:
    how does get_page_templates() check for the templates?

    is there an ID in the DB?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom templates exist but get_page_templates() does not function’ is closed to new replies.