I’ve got a
tax_queryparameter in one of my plugins, which gets posts based on two custom taxonomies (below). I’d like to be able to sort posts that are returned with it using the plugin. I am able to filter posts by those taxonomies in the ‘Re-Order’ sub-menu, however rearranging them has no effect on the output. Can anything be done?
$args = array( 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'gender_category', 'field' => 'slug', 'terms' => array( $_POST['gender'] ) ), array( 'taxonomy' => 'age_category', 'field' => 'slug', 'terms' => array( $_POST['age'] ) ) ) );
- The topic ‘tax_query with Advanced Post Types Order?’ is closed to new replies.