0

次の問題があります。ホームページに 2 つのループがあります。2 つのカテゴリを持つ 1 つのループと 2 つのタグを持つ 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-->
4

0 に答える 0