Learn about Pods - its relationship to posts and taxonomies and why you'd need to use it. To understand anything about the Pods framework discussed on this page, you must have a thorough understanding of WordPress content types, Posts vs Pages, and how they relate to one another. Once you've read through this page and are familiar with the concept of Pods, you will learn how to put it to use.
WordPress Concepts Recap
WordPress comes bundled with Posts and Pages, which you can organize using Category and Tag taxonomies. It’s also got post meta fields which you can use to append data to your content – author, date, and custom fields.
But what if you want more than the WordPress defaults? You may require more types of content than simply Posts and Pages. Categories and Tags might not cover all the ways in which you wish to classify your content. You may wish to append your content with more metadata than WordPress provides for.
What is pods?
Pods allows you to create a custom post type or custom taxonomy. It also allows you to extend an existing post type or taxonomy with custom fields or extra meta options.
You may come across sites that already include a blog, but might require an archive of something else in addition to their regular blog posts - e.g. books, journals, team members, client portfolios, etc. It makes for a better customer experience and a simpler builder experience to create a whole new post type for such an item.
You can use Beaver Themer to create a layout template specific to each new post type. When creating a themer layout for a post type or for its archive page, you can use "field connections" and "template magic tags" to pull in information from the post's custom fields that you'd like to display. Template creation and field connections will be thoroughly discussed on the Pods & Themer page.
Custom Post Types
What are Custom Post Types?
Post Types, in WordPress, are different types of content. There are five default post types that come with WordPress, all of which you’ll be familiar with: Posts, Pages, Attachments, Revisions, Nav Menus
Custom Post Types are post types that are created in addition to those bundled with WordPress core. When you activate a theme or a plugin you may find that the developer has included custom post types. Custom Post Types are used in a wide variety of ways across the WordPress ecosystem. Any time you need a content type that is different to the default types, you’ll need to start thinking about them.
Some examples of common custom post types and how they are used:
Custom post types can be used in any instance where a certain content type must be archivable, categorizable, sortable and searchable.
Pods & Custom Post Types
Instead of installing a plugin each time a custom post type is needed, you can create one yourself. If you code Custom Post Types yourself, you do this be registering the post type in the "functions.php" file of your theme.
A plugin like Pods takes care of all of that coding for you. You can create the post type from your WordPress Admin, assigning all of the different properties and values that you need. Its light-weight and very flexible.
What are Custom Taxonomies?
In WordPress, a taxonomy is a means of classifying content.
Taxonomies enable you to group things together in specific ways. This makes them extremely useful for organizing your content and creating your site’s navigation. The taxonomies that you’ll be most familiar with are categories and tags.
- Category is a hierarchal taxonomy - it lets you group things together in a hierarchical manner.
This lets you create hierarchical content structures and navigation across your website. A useful analogy is to think of it as creating your table of contents.
- Tags is a non-hierarchical taxonomy - it lets you tag the content with specific topics that are being discussed.
A useful analogy is to think of it as creating your index.
Some examples of uses for custom Hierarchical Taxonomies (Categories):
Some examples of Non-Hierarchical Taxonomies (Tags):
Pods & Custom Taxonomies
With Pods, you can easily make Custom Taxonomies and associate them with any post type in WordPress. This increases the flexibility of the navigation and organizational structure of your website. When you create a custom post type, you'll often want to create a custom taxonomy to go along with it e.g if you create a custom post type for "Books," you might want to add a custom taxonomy for it like "Genre."
What are Custom Fields?
Custom Fields are metaboxes that are used to input metadata that is related to your post.
When you add a new post in WordPress, you’ll see these draggable boxes which are used for to store information about your post. Examples are author and excerpt. Another is custom fields. If you can’t see custom fields, click on the Screen Options tab and check the Custom Fields box. While a Custom Taxonomy is way to organize and classify your posts into groups, Custom Fields let you store unique information that applies to your Post, Page, or Custom Post Type.
Some examples of Custom Fields:
Pods & Custom Fields
You can use pods to add custom fields to posts by "extending" an existing post type.
What are Advanced Content Types?
Whenever you create a Custom Post Type, it is added to the "wp_posts" table in your database. Rather than being stored in "wp_posts", Advanced Content Types are stored in their own database table. This means that they are not WordPress objects but are independent of WordPress.
Here are three examples of occasions when Advanced Content Types might be used:
You generally will not need to use Advanced Content Types.
Now that you're familiar with pods, let's learn how to use them.