WordPress.org

Ready to get started?Download WordPress

Forums

One Post per page and Next & Previous Link to Post per Category (6 posts)

  1. fas.khan
    Member
    Posted 5 years ago #

    Hello all,

    Although it seems an easy thing to do yet I haven't been able to accomplish both of them at the same time.

    When I click on the category link, I want to show one post on the page at a time, with the Next and Previous Buttons to the remaining Posts within that same category.

    How would that be possible.

    I would be very thankful for any help!

    Kind Regards.

  2. fas.khan
    Member
    Posted 5 years ago #

    any one please!

  3. fas.khan
    Member
    Posted 5 years ago #

    Ok, since you all hate me ... I found this.

    See, I am trying ...

    Now, can you please tell me how to integrate Next and Previous Buttons at least.

    I want to show one post on the page at a time :-(!

    Pooollleaaase!

  4. fas.khan
    Member
    Posted 5 years ago #

    nuff nuff!!!

  5. fas.khan
    Member
    Posted 5 years ago #

    What a great forum. You post question and then you answer on your own!

    anyhow.

    • In the Settings > Readings > Blog pages show at most

      Set this to "1"

    • Second is this to be added in the Index or whereever!... This will show the posts within the same category.
      1. <?php next_post_link('%link', 'Next post in category', TRUE); ?>
      2. <?php previous_post_link('%link', 'Previous post in category', TRUE); ?>
    • Comon, you WP gurus, was that difficult???

      :-(

  6. largecorp
    Member
    Posted 4 years ago #

    Thanks for this. I needed the same thing and never would have found it on my own.

Topic Closed

This topic has been closed to new replies.

About this Topic