post_parent__not_in doesn’t work with relevanssi_do_query
-
Hi there,
While testing Relevanssi for the first time, using a hierarchical custom post type and a custom
WP_Query
, I stumbled over an issue: It seems likerelevanssi_do_query
doesn’t respect the query parameterpost_parent__not_in
. This is what I tried, but it still gives me back posts withpost_parent
set to0
:$q = new \WP_Query(array_merge( array( 's' => 'searchterm', 'posts_per_page' => 10, 'post_type' => 'product', 'post_parent__not_in' => array(0), ))); $posts = relevanssi_do_query( $q );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘post_parent__not_in doesn’t work with relevanssi_do_query’ is closed to new replies.