Custom Content Type Manager
[resolved] Templates for Custom Post Type Pages (7 posts)

  1. pixelartist
    Posted 3 years ago #

    Hey there,

    i am trying to use the "template" option in which you can select a template for each post you are publishing.
    Right now the Box just shows: No templates exist for this post type.
    I tried different ways of creating a template, but it seems i am doing something wrong. Can someone please point me in the right direction?


  2. fireproofsocks
    Plugin Author

    Posted 3 years ago #

    WordPress by default does not support different templates for each post. Pages let you do this, but you have to create a specially named theme file for the purpose -- your template file must contain "Template Name" in the info header:

     * Template Name: Your Template Name Here

    Note that this is all WordPress functionality -- it has nothing to do with the CCTM.

    The other thing WP supports is a dedicated for each post-TYPE (not each post). You must name the file "single-xxxxx.php" in your current theme's folder where "xxxx" is the name of your post-type. This is all shown in detailed in the video on the CCTM's page as well as in the FAQ, and there's also instructions on the CCTM --> Content Types --> Sample Template pages.

    There is a feature request to allow other content types to choose other templates in the same way that pages do: http://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=19

  3. pixelartist
    Posted 3 years ago #


    thank you for your answer! This is exactly what i did. The functionality i would like to have is something like this:

    Custom-Post-Type: Movie -> Works
    Custom-Post-Type-Template: single-movie.php -> Works
    Custom-Post-Type-Template-by-Post: single-movie-movie1.php -> ???

    I have a Custom Post Type and it has a Template which is working and used as default for this Post Type. Within this post type it offers me to choose a template for this particular Post but this is not working.

    What i did so far:
    I modified different hooks in funtions.php of the template to allow this template but it seems that it gets overwritten by the default template for the this post type.

    Any help or point in the right direction is appreciated!

  4. fireproofsocks
    Plugin Author

    Posted 3 years ago #

    Like I said, it's not currently possible, but it is a feature request (see issue #19 above). There is another plugin that does this: http://wordpress.org/extend/plugins/custom-post-template/ for custom post-types, but it does require a little bit of customization to set it up.

  5. pixelartist
    Posted 3 years ago #

    I tried and tried .. either i am missing a point or lack the skills to do it on my own. Any help appreciated!

  6. fireproofsocks
    Plugin Author

    Posted 3 years ago #

    What exactly are you trying to do? The functionality you described earlier is not currently possible natively in the CCTM. If you need help using the custom-post-template plugin, you should ask in that forum.

  7. fireproofsocks
    Plugin Author

    Posted 2 years ago #

    Marking this resolved since the question relates to a different plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Content Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic