We're merging with GenerateBlocks! Learn more here.

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?

#4927
Alberto
Participant

Hi Tom!
Thank you for pointing me in the right direction.
I was trying with your code in taxonomy.php and it works when I filter one taxonomy, but I work with two taxonomies (Gender and Age), so if I want to filter, for example, the posts belong to ‘Female’ and ‘Adult’ I try with this code

$custom_settings = array(
   'relation' => 'AND',
   array(
     'taxonomy' => 'gender',
     'tax_term' => $gender
   ),
   array(
     'taxonomy' => 'age',
     'tax_term' => $age
   ),
 );
wpsp_display( 123, $custom_settings );

But it doesn’t works.
Colud you tell me how to solve this?

Thanks in advance!