Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support How to get the template part working with WPSP? Reply To: How to get the template part working with WPSP?

#5390
Tom
Keymaster

Let’s try this instead:

Remove $custom_settings from your display list function.

Then add this function to your site:

add_filter( 'wp_show_posts_shortcode_args', function( $args ) {
    $gender = 'something';
    $age = 'something';

    $args['tax_query'] = array(
        'relation' => 'AND',
        array(
            'taxonomy' => 'gender',
            'terms' => $gender
        ),
        array(
            'taxonomy' => 'age',
            'terms' => $age
        ),
    );
  
    return $args;
} );