WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Why can't I display more than 2 posts (3 posts)

  1. vvugia
    Member
    Posted 8 years ago #

    Hello, below is my index.php code. Could someone please point out why all posts would not be listed on the page? (other pages are also limited to 2 posts/page only) Is there a setting in WP configuration or some other file I should look at? Thanks for your advice in advance!

    <?php
    get_header();
    ?>
    <?php query_posts(); ?>

    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php //the_date('','<h2>','</h2>'); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h3 class="storytitle">" rel="bookmark"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php the_date(); ?> <?php edit_post_link(__('Edit This')); ?></div>

    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    </div>

    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    </div>

    <?php //comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    </div>

    <?php //posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Login
    Options > Reading Options
    Blog Pages
    Show at most: x

    What is x ?

  3. vvugia
    Member
    Posted 8 years ago #

    doh! that was it...thank you very much podz for the prompt help.

Topic Closed

This topic has been closed to new replies.

About this Topic