Wordpress Can';不要显示私人帖子
我使用下面的代码,对发布的帖子很有用,但我不能显示私人帖子。为什么?Wordpress Can';不要显示私人帖子,wordpress,Wordpress,我使用下面的代码,对发布的帖子很有用,但我不能显示私人帖子。为什么? $myquery['tax_query'] = array( array( 'taxonomy' => 'protocols', 'terms' => $termsa, 'field' => 'slug', ) ); $args = array_merge( $myquery, array( 'paged' =
$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);
根据WordPress堆栈交换上的说明,any
可能不能作为post\u状态的值。按建议使用数组是否有效