wp_query get post custom taxonomy in search.php

domain.com/?cat=id custom taxonomy not get post but category get to post
How do you write wp_query get post taxonomy?
‘post’,
‘taxonomy’ => ‘khu-vuc’,
‘field’ => ‘id’,
‘terms’ => array($post->ID),
);
$my_query = new WP_Query( $args_my_query );
?>
code in file search.php

Read more here: wp_query get post custom taxonomy in search.php

Leave a Reply

Your email address will not be published. Required fields are marked *