• Resolved Niclas

    (@najclas)


    Hi!
    I’ve been struggling with this one issue where I want to extend the loop on my single.php showing all following posts after the selected one.

    My first thought was to just increase the post number on single.php showing 9999 posts, but that obviously did not work since it showed them all,but started on the latest one – where I want to show the selected post followed by the rest.

    I’m using the good ‘ol <?php while (have_posts()) : the_post(); ?> to initiate the loop without any other settings added.

    I was thinking about adding a second loop, but not entirely sure how to do that since I want it to be the posts following the “current” one..

    Any help will be madly appreciated.

    Thanks
    /Niclas

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

The topic ‘Extending the loop on single.php’ is closed to new replies.