I'm building a filter form using a bunch of custom post types and one taxonomy. The custom post types part of the form works fine, and returns the expected results. However, as soon as I add the taxonomy filter, it completely breaks the results.
All the debug log shows me is:
[info: from line 407 in file wpv.class.php] array ( 'name' => 'Researcher Listing', ) beta.ncohr-rcrsb.ca:2893
I've created a test page using only the taxonomy part of the filter, and it works as expected:
[info: from line 407 in file wpv.class.php] array ( 'name' => 'Researcher Test', ) foo.bar.net:3573 [debug: from line 54 in file wpv-filter-query.php] array ( 'posts_per_page' => -1, 'paged' => '1', 'post_type' => array ( 0 => 'researcher', ), 'order' => 'DESC', 'suppress_filters' => false, 'ignore_sticky_posts' => true, 'post__not_in' => array ( 0 => 1943, ), 'tax_query' => array ( 'relation' => 'OR', 0 => array ( 'taxonomy' => 'field', 'field' => 'id', 'terms' => array ( 0 => '36', ), 'operator' => 'IN', ), ), 'orderby' => 'title', ) foo.bar.net:3576 [debug: from line 55 in file wpv-filter-query.php] SELECT wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND wp_posts.ID NOT IN (1943) AND ( wp_term_relationships.term_taxonomy_id IN (36) ) AND wp_posts.post_type IN ('researcher') AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_title DESC foo.bar.net:3606 [info: from line 755 in file wpv.class.php] Found 1 posts foo.bar.net:3607 [debug: from line 764 in file wpv.class.php] array ( 0 => array ( 'ID' => 1912, 'post_title' => 'Dr. John P. Doe', ), ) foo.bar.net:3608 [info: from line 436 in file wpv-template.class.php] Using view template: 1514 on post: 1912 foo.bar.net:3615
I'll hook up a support person with login for site as soon as I know who'll help me.
This is pretty urgent for me since I need to push the site out to my testers first thing in the morning.
Thakns for your help!
-m