Intro to WordPress Custom Post Types

Welcome to the exciting world of WordPress Custom Post Types! If you have spent any time working with WordPress you know that a basic WordPress site is primarily made up of Pages and Posts. You have probably also noticed that there isn’t a ton of difference between Pages and Posts. Both have similar input fields: a title, some body text, and possibly a featured image. In fact, the main content of a Page or a Post is stored in the very same database table distinguished only by its ‘post_type’.

Custom-Post-Type-Menu

Access Custom Post Types in Admin

From a practical perspective, the biggest difference between Pages and Posts is how your theme displays them. Pages are typically used to display static content and organized using Menus and submenus, which make up the main navigation features of your site. Posts, on the other hand, are typically organized by date or by category and are often displayed, like a blog, as a list with a title and teaser text or an image. For more info read “The differences between Posts and Pages” by one of our other Excelisys WordPress developers, Fred Morgan.

For many websites these basic post types offer plenty of structure and flexibility to achieve the major goals of the site. For more complex websites, however, you may find yourself needing more discrete and structured content categories. This is where WordPress Custom Posts Types come into play.

Custom-Post-Type-Admin-View

WordPress Custom Post Types look like regular Pages or Posts.

Without knowing it you may already be familiar with what WordPress Custom Posts Types offer. Many themes give you sections like “Our Team,” which give you the ability to create custom profiles for people in your organization. Or you may have seen the “Portfolio” menu item in the backend of your WordPress theme, which lets you create a catalog of projects you want to showcase on your site. “Testimonials” or “Gallery” are also familiar examples that are built into many themes. More often than not, these tools are powered by WordPress Custom Post Types.

Custom-Post-Type-Add-New

Input fields for WordPress Custom Post Type

There are many use cases for using WordPress Custom Post Types. For example, you may want to create a catalog of movie reviews, a list of documents, a selection of coupons, or a directory of store locations. In recent projects I have created post types for: Teams, Lending Library Books, Website Resources, a Contact Directory, a Client List, Lesson Plans, Forms and more.

Instead of struggling to find a plugin that works well enough for your particular content you can easily tailor your admin to work with your needs.

  • Here are a few major benefits of using WordPress Custom Post Types over simply using categorized posts:
    Custom Post Types are easy to create and maintain. You can simply click on a menu item in the Admin and you’re off and running. All of the items of a given post type are accessible from the left hand menu and presented on their own page in the backend.
  • Another big benefit is they are easier to train site admins to use. When built correctly, WordPress Custom Post Types will provide context and constraints that help your content creators focus on building content and not wasting time figuring out which category a post belongs in or if it will show up in the right place on the website. Also, when creating a typical Custom Post Type entry, you do not need all of the possible options available to a generic post streamling the process of managing site content.
  • It’s easier to create and manage custom displays of your content. By default all posts are displayed the same way by your WordPress theme. This usually means showing the title and a blurb or excerpt from the post. With WordPress Custom Post Types you can have more effective and custom layouts for you content. ‘Team Member’ posts can be displayed as an image and a bio in 3 x 3 grid. ‘Web Resources’ can be displayed as a set of expandable, categorized list of links.Custom-Post-Type-Taxonomy
  • WordPress Custom Post Types also let you create custom taxonomies (categories and subcategories) specific to your post type. A Movie post type, for example, may be categorized by genre, era, or rating. By using a WordPress Custom Post Type taxonomy you do not have to complicate the categories and subcategories of your regular Posts.

WordPress Custom Post Types highlight the fact that WordPress is not simply a blogging platform: it is a robust Content Management System that will help you organize your content and customize the presentation of your WordPress website to the world.

In a future posts I will present a tutorial on how WordPress Custom Posts Types are created and I will introduce how you can get the most out of your WordPress Custom Post Types using another powerful feature of WordPress: metaboxes.

*This article is provided for free and as-is, use, enjoy, learn, and experiment at your own risk – but have fun! Excelisys does not offer any free support or free assistance with any of the contents of this blog post. If you would like help or assistance, please consider retaining Excelisys’ consulting & development services.

About Excelisys, Inc.: Founded in 2001, Excelisys (www.excelisys.com) Excelisys specializes in designing, developing, customizing, supporting, consulting, migrating, upgrading, fixing, and integrating database solutions for Desktop, Mobile, and Web. Our core technology competencies are FileMaker Pro, FileMaker Go, and MySQL for database frameworks, along with WordPress, MySQL, PHP, CodeIgniter, PostgreSQL, Joomla, Drupal, Magento, CSS, HTML5, and Javascript for web sites and web applications.
Aside from providing excellent customer service, our goals are to use these technologies to intuitively automate your organization’s data solution needs seamlessly and flawlessly across the web, mobile, and desktop platforms. Contact Excelisys today for a free estimate and consultation about your business software automation needs @ 866-592-9235.