Select Template for Post Type missing

Support MB Custom Post Type Select Template for Post Type missingResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39075
    Denise FieldDenise Field
    Participant

    Hi
    I have created a custom post type and I want to use the template I created, but the box to select this is not showing.

    This is the entire box. I tried selecting page attributes as some had suggested this, it did show an additional box https://prnt.sc/UbTu_r2X5ZGd I checked every other box and nothing else showed up

    Please advise.

    #39080
    PeterPeter
    Moderator

    Hello Denise,

    Please follow these steps to create and use the template for your CPT

    1. When registering the CPT, enable the option Page attributes in the Supports tab.

    2. Create a template file with the CPT slug in the file name. For example, CPT slug: job
    file name: template-job.php
    content

    <?php
    /*
    Template Name: Job
    Template Post Type: job
    */
    
    get_header( 'review' ); ?>
    
    content here ...
    
    <?php get_footer();
    #39089
    Denise FieldDenise Field
    Participant

    thank you that worked perfectly!

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