Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Parametric search many-to-many

$
0
0

With the Views filter hook wpv_filter_query_post_process, You need create custom PHP function for it,
For example:

add_filter( 'wpv_filter_query_post_process', 'prefix_modify_empty_query', 10, 3 );
 
function prefix_modify_empty_query( $query, $view_settings, $view_id ) {
    if ( $view_id == 123) { // if is the views 123
        print_r($query->posts);  // display all child posts
        // create a loop to check if they are using same parent person posts, and remove the duplicate ones.
    }
    return $query;
}

Viewing all articles
Browse latest Browse all 20145

Trending Articles