Home › Forums › Pro Support › How to get the template part working with WPSP? › Reply To: How to get the template part working with WPSP?
July 23, 2018 at 8:40 pm
#5390
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;
} );