Intro to Dynamic Content
What Are Post Types
Post Types are “types of content”, grouped together in a structured way within WordPress.
The Default WordPress Post Types
Currently, there are eight default WordPress post types.
- Navigation Menu
- Custom CSS
- User Data Request
Most users are familiar with the two most common post types: Posts and Pages. Although similar, Posts are time-based listings while Pages are hierarchical in structure, with Parent > Child relationships. In addition, Posts make use of taxonomies such as Categories and Tags, while Pages do not, and Pages use Page Templates for display, while Posts do not.
What Are Custom Post Types
WordPress allows users to create their own Custom Post Types, often referred to as CPTs.
Some of the more common Custom Post Types you've probably come across include:
Each of these defines a “type of content”.
The editing screen will look very similar to the default Post and Page editors, as shown in this example of a Movie Custom Post Type.
When might you need a custom post type?
A common use of a CPT is an e-commerce website. Products are a specific type of content that don't fit into the Posts or Pages default post types. Products need to include many extra pieces of information, such as Price, Size, and Color.
Custom Taxonomies and Custom Fields
A Custom Post Type can also include Custom Taxonomies and Custom Fields.
Just as the Post Type uses Categories and Tags taxonomies to help organize posts, a Custom Post Type can use its own custom taxonomies. A movie review CPT, for example, might use Genre as a custom taxonomy, to categorize movies into groups such as SciFi, Romance, etc.
Custom fields store extra information about the content. Just as a blog post has an Author field, and an Excerpt field, a Custom Post Type might have several custom fields assigned to it.
Because CPTs are separate from Posts and Pages, they can be displayed separately, organized by their own taxonomy categorizations, and filtered based on their custom fields.
How to create CPT + Custom Fields
or you can use one of the three most popular plugins designed to make the process much easier.
Elementor integrates directly with each of these plugins. Read more about each in the following articles:
Elementor + Custom Fields
With Elementor and custom fields you can create dynamic pages without the use of code.
By utilizing the Theme Builder, you can create Single Post templates for your Custom Post Types, and you can easily select your custom fields from any Dynamic Content list to display them anywhere you wish.