我使用下面的代码,非常适合已发布的帖子,但我无法显示私人帖子。为什么?
$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);