Support » Plugins » Monthly archives dropdown list

  • JMHirst


    I have search for this using “month drop”, “monthly archive” but can’t come up with anything, so apologies if it’s a common FAQ.
    Is there a plugin/hack or a simple bit of PHP that I can use to put all the months, including the year, into a dropdown list? It would need to be in a self-executing form, so if the user selected the month/year, the page would automatically show all the entries accordingly.

Viewing 9 replies - 1 through 9 (of 9 total)
  • JMHirst


    Good grief that was damn quick!!!!!!!!!!
    Many thanks for that, works a damn treat!!!!!



    Always quick when you’re already using what’s being asked for. 😉



    Fantastic – been looking for this. I’m using it on my blog also now.

    Any idea how to do with without the aid of javascript? I want to use a submit button.

    I’m using this with styles like at but I don’t know how to make it look nice. Anybody know the general code I need to slip into the styles to adjust the width and color of this? Thanks.

    No Javascript:
    Nope. At least, I could show you how to use a submit button, but it too would have to use javascript. The reason is, the value for each archive option is an actual URL to the archive page, not a query argument that’s passed to PHP. Something has to interpret the value as a link that needs to be passed to the browser.

    Style the form:
    Assign the form a class, lets say “archiveform”, and set the various properties like this:

    .archiveform form option {
    width: 100px;
    color: #000080;

    Hey, thanks! I just dropped by looking for something like this to compress my archives list, and this is perfect. 😀

    How do you assign a class?

    Also, how do you change the position of it? When using the style found here, it gets pushed over and I don’t know why.

    I want to change it without moving anything else in the menu.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Monthly archives dropdown list’ is closed to new replies.