This reference tutorial provides the steps to add a deal custom post types and singular deal post design in Genesis. For this feature, we are going to use Pods framework plugin.
So, What is the idea?
When you want a custom post type design. there you will need 2 pages to be designed.
CPT archive and CPT singular post.
example.com/CPT/ is archive and example.com/CPT/sample post is a CPT singular post which needs to be designed.
So, how we will design these two pages?
There are different ways to customize these pages but we will go the most popular and simple way to design them.
We will create an archive-CPT.php file for archive and will create a custom sidebar for CPT singular post. Learn more about WordPress, Genesis and Custom Post Types.
Let’s see how we can do it.
STEP 1
The first Step is to Install Pods or a similar custom post types plugin and Activate it.
Once Installed. Follow the following tutorial to set up common things for the Pods plugin.
STEP 2
Now, I assume that you have set up the Pods plugin and have created a custom post type called deal.
CPT → Deal
Make sure to enable Archive Page from Advanced Options.
We can also create a custom taxonomy and add support for the deal post type from Advanced Options.
STEP 3
Now, It is time to Create some fields and then we will output those custom fields with regular snippets. Create some custom fields for DEAL CPT like the screenshot
I have mentioned different ways to output custom fields in these tutorials:
- Display Custom Fields on Singular Post Page in Genesis
- Add Video in entry content using custom fields on singular post
STEP 4
For singular CPT post, we will create a template and a custom sidebar for the CPT using Content aware sidebar plugin or by following the tutorial How to Create Custom Sidebar for Custom Post Type in Genesis or How to Register and Display Custom Sidebar in Genesis.
Read the above tutorials and then follow the following tutorial to setupin things up:
- Customize Deal custom post types Archive Page in Genesis
- Customize Deal custom post types Singular Post in Genesis