カスタム投稿タイプの表示件数
-
3.1.4を使っています。
下記のようにカスタム投稿タイプで投稿した記事タイトルを表示させているのですが、表示件数を3件にするにはどうしたらよいのでしょうか?
<?php $args = array( 'post_type' => 'news' ); ?> <?php query_posts($args); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> <?php the_time('Y.m.d') ?> <?php the_title(); ?> </a> <?php endwhile; ?> <?php endif; ?>
1件の返信を表示中 - 1 - 1件目 (全1件中)
1件の返信を表示中 - 1 - 1件目 (全1件中)
- トピック「カスタム投稿タイプの表示件数」には新たに返信することはできません。