• Resolved ollietubb1

    (@ollietubb1)


    Hi,

    I have used a CPT to create a section called Resources which will feature some downloadable whitepapers. The client wants to utilise a blog type system to manage this hence the use of your plugin.

    I have set up the new CPT and added a dummy article and a category which I can select in the blog admin. The problem is it comes up with ‘No Results Found’.

    Are you able to help? I am not sure if it is a simple setting or something deeper? I am using Divi theme and builder.

    Many thanks,
    Ollie

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    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,

    • AJ
    Thread Starter ollietubb1

    (@ollietubb1)

    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

    Plugin Author wpexplorer

    (@wpexplorer)

    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?

    • AJ
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Type for Resources section’ is closed to new replies.