Support » Fixing WordPress » Archive displays all entries

  • psychofish

    (@psychofish)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • cron

    (@cron)

    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.

    Cron

    bob58

    (@bob58)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Archive displays all entries’ is closed to new replies.