Hi Ollie,
This is Aj the plugin author. When I inspect the website I see that the no results found message is inside an element named “et_pb_blog_grid” – so I’m thinking that perhaps you are using the Divi blog grid module. I’m not familiar with the Divi builder since I primarily use WPBakery and Elementor with my Total theme but I’m wondering if perhaps this module does not display custom post types.
I did a quick Google search for “Divi builder custom post types” and in their own documentation they basically say to create a custom template to display your post type (yuck) and then when I search on their modules page the only thing that comes up is a Post Types Grid which you have to buy (also yuk).
You may need to reach out to Element Themes to see if they have a free built-in way of displaying custom post types via their builder.
If I do a simple check on this URL – https://www.serps-invaders.com/?post_type=resources – you can see that your post type is working correctly and items should be showing up on the site.
Hope that helps! Let me know if you have any other questions,
Hello AJ,
I have managed to get this to work, thanks for your advice.
Here is the page: https://www.serps-invaders.com/resources/
This uses the Divi blog post module.
I have another issue, we are hoping to display ‘Recent Posts’ on the black box next to the picture on this page:-
https://www.serps-invaders.com/resources/digital-marketing-in-the-netherlands/
This uses a WordPress sidebar module and I can see the category to select but it does not display. The standard ‘Recent Posts’ is currently displayed on this page but when in WordPress / Widgets it states no posts found when I select that category.
Any ideas if it is possible to get the CPT category to pull this through? Perhaps a setting needs changing for my CPT ‘Resources’ ?
Many thanks,
Ollie
Hi Ollie,
The WordPress recent posts widget doesn’t have the ability to select the post type from the widget settings, so you will probably have to use child theme code and hook into the “widget_posts_args” filter to modify the default query arguments for the widget so it can correctly pull your items.
But also, the Recent Posts widget by default doesn’t have any option to select a category so I’m not sure what you mean. The only settings in this widget by default are “Title, Number of posts to show, and “Display post date?”. If you see a category option, this may have been custom added by the theme, so perhaps your theme is using a custom version of the core WP widget and you’ll need to ask the theme developers for assistance.
To be honest, it seems weird to use a page builder like Divi and have to insert a WordPress widget to display recent posts, Divi doesn’t have the ability to display posts in custom ways?
For example my Total theme includes tons of pre-built “card” styles to choose from when showing posts on your site and you can even create your own cards via the card builder – it seems strange to me that such a popular theme, that is more expensive and has recurring yearly fees such as Divi doesn’t offer the ability to easily display posts in different formats via their builder…perhaps there is a different element you can use?