Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Shortcode Reply To: Shortcode

#15306
Tom
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 );