Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/7b754a915908f977f40b6db30ae909df to your computer and use it in GitHub Desktop.
Save propertyhive/7b754a915908f977f40b6db30ae909df to your computer and use it in GitHub Desktop.
add_filter( 'kadence_blocks_pro_query_loop_query_vars', function( $query, $ql_query_meta, $ql_id ) {
// Change XXXX accordingly to QL ID.
// It looks like you can find this by navigating to 'Kadence Blocks > All Queries'
if ( $ql_id == XXXX )
{
$query['tax_query'] = array(
array(
'taxonomy' => 'property_type',
'field' => 'slug',
'terms' => 'detached-house',
)
);
}
return $query;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment