WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Types
Link Custom Content Type to a particular template (2 posts)

  1. sales@4bco.com
    Member
    Posted 3 years ago #

    I love being able to add different content types to my sites. I, however, also need to be able to specify the template for each type. I have written code to do this in the past based on category. However, I just want all of the pages in the type to use the same template. Any ideas on how to make this happen?

    http://wordpress.org/extend/plugins/custom-content-types/

  2. sales@4bco.com
    Member
    Posted 3 years ago #

    I found the answer & its very simple, so I will post it here in case anyone else needs it. Just name the template...

    single-ContentType.php where Content Type is the name used to create the new content type. Works perfectly and simply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic