First, you’ll need to make this change to the core code: https://github.com/tomusborne/wp-show-posts/commit/286caf1164db8b6b6f38b85d3a011b519a27f4de
Then you might be able to do this:
add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
if ( 123 === $settings['list_id'] ) {
$args['tax_query']['relation'] = 'AND';
$args['tax_query'][] = array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => 'tag-to-search-for',
);
}
return $args;
}, 10, 2 );
The tax_query
parameter is particularly complicated, so I’m not 100% sure this will work.
No date for the update at the moment.