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?

#4975
Alberto
Participant

Hi Tom!
Thanks for your suggest but it seems not to works.
This is the result of $custom_settings var_dump:

array(1) { ["tax_query"]=> array(3) { ["relation"]=> string(3) "AND" [0]=> array(2) { ["taxonomy"]=> string(6) "gender" ["tax_term"]=> string(6) "female" } [1]=> array(2) { ["taxonomy"]=> string(3) "age" ["tax_term"]=> string(5) "child" } } } 

The result’s page show all the posts, without filtering.

I’ve also tried with:

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

And with:


$custom_settings = array(
	'post_type' => 'locuciones',
	'tax_query' => array(
		'relation' => 'AND',
		array(
	    	'taxonomy' => 'gender',
	    	'terms' => array($gender),
	    ),
	    array(
	    	'taxonomy' => 'age',
	    	'terms' => array($age),
		),
	)
);

What could be wrong with that?

Thanks in advance.