Archive displays all entries (3 posts)

  1. psychofish
    Posted 10 years ago #

    I have a link of monthly archives on my site. When I go to a monthy archive page, it only displays the last ten entries of the month. (This is set in the wp control panel, and I do want the main page to display only the last ten entries.) However I would really like the monthly archive to diplay ALL the entries for that month, no matter how many that is. Any help? Thanks!

  2. cron
    Posted 10 years ago #

    This is not a very elegant hack but it works. If you tack "?posts_per_page=-1" (no quotes) to the ends of the links then whenever you go to the archives page from those links it will display all the posts from that month.

    Or if you are using permalinks you can do basicly the same things with some fancy mod_rewrite rules.


  3. bob58
    Posted 10 years ago #

    Take a look at http://codex.wordpress.org/Template_Tags/get_archives, especially the part about 'limit'.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.