Category pagination within a post... is this possible? (2 posts)

  1. jakethebear
    Posted 3 years ago #

    My aim is to create a 'Next' pagination link within a single post that when clicked will show the next 5 posts in the same category as that post. So the next page url would look like 'post-slug/page/2' and display the next lot of posts. Can this even be done??

    I am fully aware of post pagination where you can split the posts content into sections to create a multiple page effect, but this is a different matter altogether and despite my relentless searching I have not managed to uncover anything. The reason I am doing this is to utilise the Infinite Scrolling plugin on posts as well as pages.

    I hope this makes sense. Any help much appreciated, this is the last thing I need to implement before I can sign off on this site!! Many thanks in advance.

  2. Bas Schuiling
    Posted 3 years ago #

    Maybe you can query the posts in the single template and then hide it, and make it appear via Javascript?

    I don't think WordPress will be able to do this natively.

Topic Closed

This topic has been closed to new replies.

About this Topic