• TommyBass

    (@tommybass)


    Hi,

    I have created my own wordpress template. On the homepage i have it showing the posts, but what i want to do is rather than having the page expanding with each post, i would like to only show 1 post at a time and then click to switch to the next post within that category?

    i found this code
    <?php next_post_link(‘%link’, ‘Next post in category’, TRUE); ?>

    but dont know where to put it and also how i limit the page from only showing 1 post at a time from that category?

    Hope this makes sense?

    Cheers

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • Pioneer Web Design

    (@swansonphotos)

    Set: Settings>Reading to 1 post and then try WP-PageNavi and review how to replace next prev links.

    Thread Starter TommyBass

    (@tommybass)

    Thanks Swanson,

    That perfect and so simple. Only problem now is that when next post is selected it loads the next post but jumps to the top of the page. so i have to scroll down the page to get back to the post.

    Is there anyway to center the page on the post?

    Thanks

    Tom.

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

The topic ‘Next Post Button’ is closed to new replies.