WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Template
CPT Template Names? (2 posts)

  1. James
    Member
    Posted 2 years ago #

    So what are we supposed to name the templates we want to use with CPTs?

    I get that Regular Posts need "Template Name Posts" in front, but what about CPTs?

    For example what if I have a CPT named "test"? I tried naming the template "Template Name test : templatename", but nothing shows up.

    http://wordpress.org/extend/plugins/custom-post-template/

  2. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 2 years ago #

    CPTs need the templates to be named in the same way as regular posts, the templates will show up for everything (e.g. if you have two templates named appropriately these will show for regular posts and any enabled CPTs).

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic