我有以下问题,我的主页上有两个循环。1 个循环有两个类别,一个循环有两个标签,但它不起作用。请参阅下面的代码:
循环 1
query_posts(array(
'post_type' => 'post',
'cat' => 12, 15,
'posts_per_page' => 8));
if(have_posts()) : $count = count($r); ?>
<!--POST STUFF HERE-->
循环 2
query_posts(array(
'post_type' => 'post',
'terms' => 'news', 'articles',
'posts_per_page' => 8));
if(have_posts()) : $count = count($r); ?>
<!--POST STUFF HERE-->