Created
July 16, 2024 14:40
-
-
Save propertyhive/7b754a915908f977f40b6db30ae909df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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