我使用下面的代码,适用于已发布的帖子,但我不能让它显示私人帖子。为什么呢?
$myquery['tax_query'] = array(
array(
'taxonomy' => 'protocols',
'terms' => $termsa,
'field' => 'slug',
)
);
$args = array_merge(
$myquery,
array(
'paged' => get_query_var('paged'),
'posts_per_page' => 7,
'post_status' => 'any'
)
);
query_posts($args);