Forums

Yearly drop-downs for archives? (2 posts)

  1. marcy
    Member
    Posted 4 years ago #

    I learned how to put all my archives in one drop-down menu by using this code from this thread --


    <form name="archiveform" action="">
    <select name="archive" onchange="window.open(document.forms.archiveform.archive[document.forms.archiveform.archive.selectedIndex].value);">
    <?php get_archives('monthly','','option'); ?>
    </select>
    </form>

    What I'd like to do instead is tweak this so that I can show each year in its own drop-down menu. In other words, under the heading "Archives," there would be a menu with "Browse 2005" showing in the box, and the months listed beneath, then another menu for 2004, and one for 2003, etc.

    Is there a way to do this?

  2. marcy
    Member
    Posted 4 years ago #

    Am I missing something obvious? Can anyone point me to the tutorials or other obvious information that I've missed?

Topic Closed

This topic has been closed to new replies.

About this Topic