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?

#4985
Alberto
Participant

Hello Tom!
According to the syntax reference you’ve given me, I’ve tried with this code:

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

But I’m still getting all the posts as result…

I’ll appreciate so much if you’d take a look at the WPSP plugin code.

Thanks in advance.