• I am sorry to bother you. I looked on the forum and did not see this scenario addressed. I apologize if I missed it. I have a quick question regarding your NS Featured Post plugin. I appreciate the fact that the plugin supports both post and custom post types. I am currently using the plugin to display two lists on the front page of a website: each list is associated with one post type. Is there a way to use one list to display both (or multiple) post types together in one? I don’t see a way to do this in the widget, and I wondered about its possibility by adding php to the child theme. Any help that you can provide is appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nilambar Sharma

    (@rabmalin)

    To fetch multiple post types, you need to pass array in post_type parameter in WP_Query. Example.

    $args = array(
        'post_type' => array( 'post', 'page', 'movie', 'book' )
    );
    $query = new WP_Query( $args );
    Thread Starter aj4h

    (@aj4h)

    Once these changes are made, we should be able to see the plugin’s widget fetch custom post types automatically, whenever the “post” post type is selected. Is this correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display two post types in one featured post list’ is closed to new replies.