Code by Day | Explore By Weekend

How To Display Custom Post Types In The Divi Blog Module Tutorial by Pee-Aye Creative

How To Display Custom Post Types In The Divi Blog Module

You can now display custom post types in the Divi Blog Module! This is an exciting new feature that snuck in there in Divi 4.0.

Any Custom Post Type Now Shows In The Divi Blog Module

We’ve tested this with a variety of different post types, and it works great. We even tried the project post type that ships with Divi, as well as products from WooCommerce. Of course there are some disadvantages to using the Blog Module to display products, but hey, it could be useful. Here are the custom post types we tested with the Divi blog module:

  • Posts
  • Pages
  • Projects
  • Products
  • Custom
Custom Post Type UI with Divi

Once this plugin is installed and activated, a new menu item appears in your Dashboard called “CPT UI.” From there, you can add or edit post types. I’m not going to show you all the steps here in this tutorial (we’ll save that for another time if you are interested), but we can show you the basics. Our goal in this post is simply to show you how to display custom post types in the Divi Blog module, not to create and manage them.

Below you can see the settings to add a new post type.This is what I used for our demo. I decided to use “Cats” as my custom post type.

Adding a new custom post type to Divi
custom post types in Divi

After the custom post type is created and a few items have been added, go to the page where you want to display the post type feed and add a blog module. As of Divi 4.0, a new option appears under the Content toggle called “Post Type.” This is a dropdown showing all the available post types for this website. As you can see, from our example, there are several available in my example site:

  • Posts (which was the only one we had previously),
  • Pages
  • Media
  • Projects
  • Products (since I have WooCommerce installed)
  • Cats (the new CPT we just created)
select and display custom post type in the Divi blog module
select from any custom post type in the Divi blog module
example of a custom post type being displayed in the Divi blog module

When I click the Cats from the post type selector, it displays everything in the Divi blog module just like it did for posts prior to Divi 4.0. You can choose the layout, hide or show elements, and style everything using the Divi Builder.

I’ really excited about this and some of the other new features in Divi, so be sure to follow the blog closely as I will be showcasing more and more features that you may have missed. We will also be creating some child themes using custom post types, so that is excited that this functionality has been added. Let us know in the comments how you are using custom post types in the Divi blog module!

25
Last updated Jan 3, 2021 @ 1:34 pm

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative Co in the beautiful state of Pennsylvania. He loves helping small businesses, exploring, building websites with Divi, and teaching others.
Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Leave A Response!

Subscribe
Notify of
guest
22 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
noureena
noureena
1 year ago

how can i add categories of a custom post type in divi blog module

Thais
Thais

I need to do that too! There is no way?! 🙁

Tajin
Tajin
9 months ago

Sadly they did only half the job and didn’t bother adding the same functionality to the post-slider module.

Tine Broucke
Tine Broucke
8 months ago

Hi, I guess I have the same question as the ‘catogory’-problem.
In the ‘cat’-‘dog’ situation, I’ve made a CPT with cats, but I only want to show the ones with green eyes (which is provided from a radiobutton-choice). Can I do that? Or do I have to show all the cats?
 
Kind regards
Tine

Kalle
Kalle

Any updates on this? Would love to use this functionality! I want to show cities only from a certain country (using CPT UI and ACF). /Kalle

Kalle
Kalle

Thanks for the response! I think I figured out a solution. I now have an issue where I cannot find one the custom post types. Have you had this issue?

Brad
Brad
Reply to  Kalle
6 months ago

Can I ask what your solution was, please?

Nathan
Nathan
4 months ago

Do you know if there is a way to show regular posts and also custom post types in the same feed? My clients site has hundreds of posts and we now also want to create new custom post types, but want them in the same feed.

Abhishek Kotian
4 months ago

how can i create custom post type current category page. similar as the post types current category.

when i can it to custom post types name in the selection column the category check box doesn’t display for the custom post type.

Jacob Reinholdt
Jacob Reinholdt
1 month ago

Great post.Thank you. I do not read the divi change log (yet) – so it is great that you post about changes and new features in DIVI, Miller. I am experimenting with use Custom Post types on one of my projects.

John Callanan
John Callanan
1 month ago

Still can’t display by Category though? Kind of half-baked feature IMHO. ET should complete this.

Mark Cunzolo
Reply to  John Callanan
1 month ago

Hi there, here is a “fix” I discovered. For your CPT, you HAVE to enable WP core categories. For blog module selective filtering, you’ll need to create categories for your CPT, rather than custom taxonomies. Then, when you add the blog module to your page, the categories you set for your CPT will show up in the categories listed for posts, which is the default content option for the blog module. Leave it on posts and check off the categories you want to show, even though these categories are assigned to your CPT instances and not any of your out-of-the-box… Read more »

Mark Cunzolo
Mark Cunzolo
Reply to  John Callanan
1 month ago

Hey there, This is actually Mark Cunzolo again. I submitted what I thought was a fix, then I tried to go back and edit it before it was approved because I realized my fix didn’t work. BUT NOW I HAVE A CODE WORKAROUND THAT IS WORKING! Okay, again you need to allow WP core categories to be active on your CPT. I know you want to use custom taxonomies, but until ET comes out with a fix/addition you’ll have to use regular old categories for your CPT. Then, add the snippet of code discussed in this article to your functions.php… Read more »

Shop Our Divi Products

Plugins • Courses • Templates

Visit The Shop

Divi Adventure Club Product And Course Membership by Pee Aye Creative

Become A Member!

Gain access to everything we offer!

Learn More

Divi Tutorials On YouTube

Join over 5,200 others and subscribe to our helpful Divi videos!

Visit Our Channel

Recent Posts

Pin It on Pinterest

0

Your Cart