• Resolved el-scampio

    (@el-scampio)


    Hi,

    I am using pinksimplescheme template.

    On the home page it has a feature that scrolls the last posts in a box at the top. Directly underneath it will display the last 10 posts.
    Any older posts drops into the Archives, the issue is the Archive page (monthly) is only displaying the last 10 posts and not all of the posts for that month.

    A am thinking it is a setting in the index.php but I have no idea what.

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think you can get what you want by overriding the value set in Admin->Settings->Reading->’Blog pages show at most’. In archive.php, change this:

    <?php
          $odd = false;

    to this:

    <?php
          global $query_string;
          query_posts($query_string . '&posts_per_page=-1');
          $odd = false;

    Thread Starter el-scampio

    (@el-scampio)

    That worked perfectly.

    Thank you very much, greatly appreciated.

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Posts limited to 10 in Archives’ is closed to new replies.