We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Including more than one post type Reply To: Including more than one post type


Hi Mike,

It’s possible, but it’ll take some tweaking.

Make this change in your wp-show-posts.php file: https://github.com/tomusborne/wp-show-posts/commit/286caf1164db8b6b6f38b85d3a011b519a27f4de

Then you can do this:

add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $args['post_type'] = array( 'post', 'another-type', 'one-more' );

    return $args;
}, 10, 2 );

You just need to update 123 with the ID of the list.