• Hi Ben,

    Wondering if you know what I would need to alter to make sure all widgets, particularly, Latest Posts, recognizes all my post types. The context is that I use the Recencio Book Reviews plugin which creates a new post type called “rcno_review” and apparently certain widgets aren’t recognizing the post type, and as a result aren’t pulling those posts into their feeds.

    I solved it for some widgets by changing the following to an array on lines 66 and 67 in post-list.php but it doesn’t seem to have worked for all widgets.

    ‘post_type’ => array( ‘post’, ‘rcno_review’ ),

    Any ideas? I’ve shared an example on my About page where you can see that the latest posts section is missing all of the book reviews essentially.

    Thanks,

    Jamie

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hi Jamie,

    That’s a good question. I can make an update for Mission News that will allow for post types to be selected for the widget. Would you want to choose one post type or include multiple post types at once in the list?

    If you want to make this edit yourself, you could edit line 66 in inc/widgets/post-list.php

    Change this:

    'post_type' => 'post',

    To this:

    'post_type' => array('post', 'rcno_review'),

    That will get it working for now, but I should warn you that editing theme and WP files directly can get messy because updates will override your changes. That’s why I’m going to update Mission News to include this as an option in the widget.

    Thread Starter gillinghamjamie

    (@gillinghamjamie)

    Being able to select multiple post types to include at once would be ideal! Thank you!

    I’ll take a look at updating the php in the meantime.

    Theme Author Ben Sibley

    (@bensibley)

    Great, I’ll have this option added to the theme soon.

    Theme Author Ben Sibley

    (@bensibley)

    Hey Jamie,

    The update is available now and adds support for custom post types to the Recent Posts Extended widget.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widgets not recognizing all post types’ is closed to new replies.