特定のカテゴリ且つ特定のタグを持つ記事の抽出
- Category: WordPress関係
$category_id, 'tag_slug__and'=>array($tag_slug), 'paged'=>$current_paged);
query_posts($query);
?>
WordPressループの手前に書いておけばOKなはず。
query_posts関数の引数は文字列ではなく配列形式にする必要がある。また、クエリ内にpagedの値を入れないとページナビゲーション系が動作しない。