Forums

Archives Month as nestled list in year (4 posts)

  1. matt_g
    Member
    Posted 4 months ago #

    Hi,

    I've seen something like this asked before, but can't find any resolution.

    I just want my archives list to show the months as a sublist of the year, so I get output like:

    <ul>
    	<li>2009
             <ul>
                <li>january</li>
              </ul>
             </li>
    </ul>

    I don't want a plugin that does any javascript effects, or collapsing lists or anything like that, I just need a way to have months formatted as sublists of years.

    Any ideas?
    thanks
    matt.

  2. MichaelH
    moderator
    Posted 4 months ago #

  3. matt_g
    Member
    Posted 4 months ago #

    hmm, thanks, but it doesn't seem to work as needed - it just presents them as a single list of every month.

    Is there somewhere I can get to the function wordpress uses to generate that list to customise its html output, the way you can with the pages and categories lists?

    wp_get_archives doesn't seem to have anywhere in it that's immediately obvious that I can add html tags to customise the output.

    im surprised there isn't an option for this built in, or rather that it isn't the default behaviour.

  4. MichaelH
    moderator
    Posted 4 months ago #

    This plugin might do that and if nothing else you could modify to fit your exact need:
    http://justinblanton.com/projects/smartarchives/smartarchives.phps

Reply

You must log in to post.

About this Topic