WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Template
Post Template Not Showing (3 posts)

  1. ryscript
    Member
    Posted 1 year ago #

    To anyone who is wanted to display Post Type in Custom Post type, open custom-post-template/custom-post-templates.php and replace this line of code.

    $post_types = apply_filters( 'cpt_post_types', array( 'post' ) );

    to

    $post_types = apply_filters( 'cpt_post_types', array( 'post', 'your_post_type', 'other_post_type' ) );

    [ Link removed Please do not use signatures. ]

  2. Amy_Beth
    Member
    Posted 1 year ago #

    I have the same problem.

    I am not seeing the drop-down list in my posts.

    I tried this but all I see when I create new posts is:"custom post template not available for this theme. Here is what I did:

    I uploaded 3 files to my theme directory (where index.php is): custom-post-template.php, template-tags.php, and select-post-template.php.

    I activated the plugin.

    Then I went into the directory: custom-post-template/custom-post-templates.php (which is in my theme directory)

    and I cannot find where to put

    /*
    Template Name Posts: MyCustomTemplate
    */

    Any ideas for me?

  3. Shaliza
    Member
    Posted 1 year ago #

    Having the same problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.