[Resolved] Where is Post Attribute section (for using post templates)

Home Forums Support [Resolved] Where is Post Attribute section (for using post templates)

Home Forums Support Where is Post Attribute section (for using post templates)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1139541
    Caitlin

    I uploaded a post template but when I go to an individual post to select the template in the post attributes section, I can’t find this section. It’s not listed in the screen options as something I can add. How do I enable Dispatch so I can use post templates?

    #1139719
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Are you using the new editor? If so, it should be in the “Document” tab, named “Page Attributes”: https://www.screencast.com/t/rHonWjKOT

    Let me know πŸ™‚

    #1139734
    Caitlin

    I am using the new editor. That section isn’t listed. I used to be able to access it under my old theme but not with this one: https://www.geographyrealm.com/wp-content/uploads/2020/01/Screen-Shot-2020-01-21-at-4.17.32-PM.png

    #1139747
    Leo
    Staff
    Customer Support

    The theme itself doesn’t control what WordPress’ editor shows.

    Are you sure you are looking at a page and not post?

    Make sure it’s activated under Options screen:
    https://www.screencast.com/t/77rgLDCyRaA

    Let me know πŸ™‚

    #1139751
    Caitlin

    I’m looking at a post and not a page and I did check the options screen. It doesn’t provide me with a option to turn it on under the Options screen. It’s not listed at all there as an option to check on. I used page templates under my old theme and it was always listed.

    #1139752
    Leo
    Staff
    Customer Support

    Sorry I’m a bit confused.

    Page attributes only available to pages and not posts:
    https://make.wordpress.org/support/user-manual/content/pages/page-attributes/

    Perhaps your old theme was adding specific features before?

    You can test with a default twenty series WP theme and you will see the same settings as you are seeing with GeneratePress.

    #1139758
    Caitlin

    Wordpress enabled the use of post templates a few years ago. I just did some more digging and I had forgotten to tag the top of the template file with the attributes like this:

    <?php
    /*
    * Template Name: Book Feature Post
    * Template Post Type: post, page, product
    */

    It’s now working and my post now lists the templates to choose from (see screenshot): https://www.geographyrealm.com/wp-content/uploads/2020/01/Screen-Shot-2020-01-21-at-4.57.07-PM.png

    #1139772
    Leo
    Staff
    Customer Support

    Glad you’ve figured out πŸ™‚

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.