WordPress.org

Ready to get started?Download WordPress

Forums

Indicating number of entires by month (6 posts)

  1. aerojad
    Member
    Posted 9 years ago #

    Hopefully a simple request, but how do I indicate the number of entries per month in ( )'s like is already done for categories?

  2. idbehold
    Member
    Posted 9 years ago #

    Please delete, mods

  3. idbehold
    Member
    Posted 9 years ago #

    I have a plugin that gives me the archives by year and then all the months in that year, and its setup the way you want. The php is (take out the spaces):
    < ul >
    < ?php cg_get_archives_by_year('24', '', '< li >', '< /li >', '< ul >', '< /ul >', '< li >', '< /li >', true); ? >
    < /ul >

    You can see it in action: http://workingbath.com/archives/

  4. Kafkaesqui

    Posted 9 years ago #

    See the info on the 'show_post_count' parameter for the get_archives() and wp_get_archives() tags:

    http://codex.wordpress.org/Template_Tags/get_archives
    http://codex.wordpress.org/Template_Tags/wp_get_archives

  5. spoutnik
    Member
    Posted 9 years ago #

    just add this in your source code:

    show_post_count=1

    that's all.

  6. aerojad
    Member
    Posted 9 years ago #

    Thanks Kafkaesqui, that was brutally easy :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.