Home › Forums › Pro Support › Shortcode › Reply To: Shortcode
May 4, 2020 at 4:54 pm
#15306
Keymaster
Hi there,
It’s not possible in the shortcode, unfortunately.
You’ll need to make this change to the core code (it will be in the next update): 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 ( 76440 === $settings['list_id'] ) {
$args['author'] = 123;
}
return $args;
}, 10, 2 );