Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Combine Conditions Reply To: Combine Conditions


Hmm, you could give the list a custom class, then do this:

add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
    if ( 'my-custom-class' === $settings['wrapper_class'] ) {
        $args['category__and'] = 8;
        $args['tag__in] = 68;

    return $args;
}, 10, 2 );

That way the filter will apply to all lists with that class.

Or are you wanting to change the 8 and 68 dynamically?