上記ですが、解決したのですが、指定したカテゴリーを降順、昇順したいため、 <?php if (is_category(array('1','2'))) { ?> <?php query_posts($query_string . '&order=DESC&orderby=date'); ?> <?php } else { ?> <?php query_posts($query_string . '&order=ASC&orderby=ID'); ?> <?php } ?> のように書いていたのですが、ご指示いただきましたコードを追記したところ、 <?php if (is_category(array('1','2'))) { ?> <?php query_posts($query_string . '&order=DESC&orderby=date'); ?> <?php } else {
![親カテゴリーに子カテゴリーのエントリーを表示させたくない](https://cdn-ak-scissors.b.st-hatena.com/image/square/ed4d0a493ce504f1173fe010d5b74ef7a8be02dc/height=288;version=1;width=512/https%3A%2F%2Fs.w.org%2Fimages%2Fhome%2Fwordpress-default-ogimage.png)