• Hello,

    Im making a very visual theme. Its basically a thumbnail theme with infinite scroll.
    My index page its almost complete and ok, Im doing now the single.php page and I have a problem, hope it can be solved, I suppose so.

    I just want to load all the posts inside the single.php
    This page basically shows the image posted in bigger size and at the bottom I would like to add the next posts. (in case this post is from 5 january for example, it would show all post next to this date)

    I’ve added this code to the single.php after the load of the image to try to load all posts:

    <?php get_template_part( ‘loop’ ); ?>

    the loop is a php that calls the posts its the same used at index.php

    The only problem is that this call, just puts the post of the single page that Im in.
    So if the ID is 5, it posts the bigger image and below only the respective thumbnail post and not all the post next…

    can anyone help me with this?
    thanks in advance!

  • The topic ‘how to load all posts in the single.php’ is closed to new replies.