CMS Press for WordPress – Custom Post Types

Follow @tristarweb

The other day I wrote about Pods CMS for wordpress, which is great – however, I have a found another great plugin for WordPress!

CMS Press allows you to quickly and easily create custom post types for WordPress. The reason I found it was because I wanted more control over the permalinks for the custom post types in my web design project – which this plugin offers, in a really easy to understand manner. If you enjoy using custom post types, then you definitely need to check it out.

Useful Tip

When making the template pages for your custom post types, there are a few template naming conventions that come in use! If you have made your post type publicly queryable, then you will need some sort of template page for what is effectively your custom post “archive” page. Simply follow these steps:

  1. Duplicate index.php in your theme folder
  2. Rename the duplicated file to index-{post-type-name}.php
  3. That’s it! When you now browse to http://www.yourdomain.com/post-type-name, it will be using the template you just created.

The above works for all the different pages, including:

home-{post-type-name}.php
index-{post-type-name}.php
single-{post-type-name}.php
{post-type-name}.php (for cms-press backwards compatibility)
date-{post-type-name}.php

And I believe the same would work if you create your custom post types using the functions.php file.

About James

Hello there, I'm James. I studied Multimedia Design at university. I'm a designer at heart, though I love developing innovative and exciting solutions to web based products.I now specialise in front end web design and bespoke Wordpress powered websites.

One Response to CMS Press for WordPress – Custom Post Types

  1. Ashish Kumar says:

    11:33 07/03/2011

    Informative, Thanks for sharing such a nice article with us!!!!!!!!!!!!!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please wrap all source code with [code][/code] tags.

Follow Tristar on Twitter