特定のカテゴリを表示する

2009.03.08

< ?php query_posts(‘cat=6&posts_per_page=9’); ?>

< ?php if (have_posts()) : ?>
< ?php while (have_posts()) : the_post(); ?>

〜〜〜

< ?php query_posts(‘cat=6&posts_per_page=9’); ?>
を記事ループ前に設置

cat=(カテゴリID)&posts_per_page=(表示件数)

で指定

Tags:

コメントは受け付けていません。