Hi there,
That’s WordPress escaping shortcode characters. We can do a workaround using filters.
First, you must edit the plugin’s code on file wp-show-posts.php
. https://github.com/tomusborne/wp-show-posts/commit/286caf1164db8b6b6f38b85d3a011b519a27f4de
(Alternatively, you can use the latest beta – https://wpshowposts.com/wp-show-posts-1-2-0/)
You then do a PHP filter like this example:
add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
if(1234 === (int)$settings['list_id']){
$args['tax_query'] = array(
'relation' => 'OR',
array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => 'your category/tag slug here',
),
);
}
return $args;
}, 15, 2 );
You then replace 1234
with the WPSP list ID and replace your category/tag slug here
with the post tag term’s slug.
You then unset the attributes of the shortcode, putting back the base. Example: [wp_show_posts id="9905"]