WordPress.org

Ready to get started?Download WordPress

Forums

Archive displays all entries (3 posts)

  1. psychofish
    Member
    Posted 8 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
    Member
    Posted 8 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.

    Cron

  3. bob58
    Member
    Posted 8 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

Tags

No tags yet.