• Ras Kenbo

    (@raskeno)


    Hi.

    I’d like to have each of my category pages display:

    1- the latest post within that category.
    2 – provide previous next links to other posts within that category.

    I’ve managed to get this working apart from the previous/next links.

    Any ideas? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • wp_guy

    (@wp_guy)

    The same previous/next links used in the main page should work just fine:

    <?php next_posts_link('&laquo; Older Entries') ?>
    <?php previous_posts_link('Newer Entries &raquo;') ?>
    Thread Starter Ras Kenbo

    (@raskeno)

    Thank WP_guy.

    Here’s how I solved my problem:

    1 – Settings -> Reading

    2 – Blog pages show at most = 1

    3 – <?php next_posts_link(‘« Older Entries’) ?>
    <?php previous_posts_link(‘Newer Entries »’) ?>

    I had been using query_posts in my template to display a single post (for no good reason) when changing the settings as per steps 1 and 2 was all that needed to be done.

    Best!
    Ken

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Browse Posts on Category Page’ is closed to new replies.