0
我想呼應$ zipcode_term的「tax_query」內,但它是不工作...使用可變內WP_query
wp_reset_query();
$zipcode_term = get_the_term_list(get_the_ID(), 'zipcode');
$args = array(
'tax_query' => array(
array(
'taxonomy' => 'zipcode',
'field' => 'slug',
'terms' => '.$zipcode_term.'
)
)
);
$query = new WP_Query($args);
的我都呼應$ zipcode_term並正確顯示,所以我知道,部分工作,我怎麼能正確地表達它在陣列內?