Skip to content

Custom Post Types and Custom Post Formats

Photo of Anthony Zeoli
Hosted By
Anthony Z.
Custom Post Types and Custom Post Formats

Details

There may be a time when building a WordPress website that you're going to need to create a "custom post type: for blog-like content that should not be in the same blog feed as your blog posts. For example, Testimonials are not a category of or the primary content for your blog. They are distinctly separate and need their own "Custom Post Type" called "Testimonials" so that you can publish multiple testimonials and publish them as a grid of testimonials and when you click on the testimonial, it then has it's own single post testimonial page.

This is also useful when you have a database of things like houses, cars, music, tools, or other unique objects that are classified and categorized.

A good example of this is Products in WooCommerce. When you install WooCommerce, you get a "Products" custom post type, which then allows you to add your Products not to Posts on your WordPress Dashboard, but to a CPT of "Products," which then has a unique set of metadata around the Product

We'll also talk briefly about Custom Post Formats,m as well. You can style a Post Type to lay out and be designed distinctly different from another. For example, if you have a blog post with a post format of Standard, you can then have an Audio post with a post form of Audio. The formatting of each post is then different for the type of media you want to publish and what you want that to look like to the site visitor.

Photo of WordPress Asheville Meetup group
WordPress Asheville Meetup
See more events