固定表示記事を表示すると表示数が多くなる
-
すいません、また固定ページ関連で悩んでいます。
以下のように投稿記事を3件表示しているのですが、<?php query_posts('posts_per_page=3'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="article"> <div class="h3 index_news_title"> <div class="index_news_day"><?php the_time('Y.m.d') ?></div> <div class="index_news_text"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div> </div> <p><?php echo mb_substr(strip_tags($post->post_content), 0, 100); ?>....</p> </div> <?php endwhile; endif; wp_reset_query(); ?>
固定ページを表示すると固定表示+3件というように表示されてしまいます。
この場合、どのように対処するばいいのでしょうか?
ご教授よろしくお願いします。
4件の返信を表示中 - 1 - 4件目 (全4件中)
4件の返信を表示中 - 1 - 4件目 (全4件中)
- トピック「固定表示記事を表示すると表示数が多くなる」には新たに返信することはできません。