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 Show posts in current category and specific tag Reply To: Show posts in current category and specific tag

#14029
Tom
Keymaster

Let’s try something else.

First, you’ll need to make this change to the core code: https://github.com/tomusborne/wp-show-posts/commit/286caf1164db8b6b6f38b85d3a011b519a27f4de

Then, do this:

add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $args['post__in'] = array( 305512, 334934, 332645, 334067 );
        $args['orderby'] = 'post__in';
    }

    return $args;
}, 10, 2 );