• Resolved jperezpleg

    (@jperezpleg)


    Hello,

    We are using Twenty twenty three, but our templates for our pages are .php files:

    We want to do the same for a single post template, but here is the issue:

    For some reason, when we open the template selector in a single post, we get a shorter version of the template selector with just the .html block templates.

    What could be the reason behind this?

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

Viewing 1 replies (of 1 total)
  • Thread Starter jperezpleg

    (@jperezpleg)

    I managed to fix it doing the following:

    I originally had this as the top of the file:

    <?php/*
    Template Name: Single Posts
    */?>

    I had to add the post type, so i changed it to:

    <?php/*
    Template Name: Single Posts
    Template Post Type: post
    */?>


    Now it works perfectly.

Viewing 1 replies (of 1 total)
  • The topic ‘Cant use php templates for a single post’ is closed to new replies.