0
我試圖顯示也有不同分類標準的2個不同CTP的最新3個職位。這些帖子必須是按日期排序的,與CTP無關。循環2不同CTP與不同分類
我的CTP和它的分類是這些:
My CTP and Taxonomies structure
有沒有一種方法來「有多種分類法」添加到多重循環?
像這樣的東西?
<?php
// QUERY PARA ARTICULOS Y NOTICIAS
$args2 = array(
'post_type' => array('noticias', 'articulos'),
'orderby' => 'rand',
'posts_per_page' => 3,
'tax_query' => array(
array(
'taxonomy' => 'categoria_noticias',
'field' => 'slug',
'terms' => 'nacionales',
),
// Another Array for 2nd taxonomy here?
),
);
在此先感謝和抱歉我的英語!
謝謝@Davebra!這工作正常! –