• Resolved Arash

    (@john25)


    The frontpage only displays one post. I have checked the loop code and offcouse have set the nr of post of the frontpage in wp-admin on more than one. Yet the frontpage only displays one post.


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

    <div class="post" id="post-<?php the_ID(); ?>">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <div class="postmetadata">
    <p>Gepost in <?php the_category(', ') ?> <?php edit_post_link('Edit', '', ' | '); ?> door <?php the_author() ?> op <?php the_time('d F Y') ?> </p>
    </div>
    <div class="entry">
    <?php the_content('Lees verder...'); ?>
    </div>
    <div class="postfooter">

    <p class="postmetadata">Gepost in <?php the_category(', ') ?> | <?php edit_post_link('Bewerk', '', ' | '); ?> <?php comments_popup_link('Geen reacties »', '1 reactie »', '% reacties »'); ?></p>
    </div>
    </div>

    <?php endwhile; ?>

    Maybe I am missing something.

    Does anyone know what I am doing wrong? and how to fix it?

Viewing 1 replies (of 1 total)
  • Thread Starter Arash

    (@john25)

    I found the problem


    query_posts(‘posts_per_page=1’);

    I removed it and it worked

Viewing 1 replies (of 1 total)

The topic ‘Frontpage only displaying one post’ is closed to new replies.