• Hello! Can anyone give me a hand in modifying the following script to create a dropdown menu for pulling archived posts by category? I’m not sure what the correct syntax is. Code follows:
    <form name="archiveform" action="">
    <select name="archive_chrono" onchange="window.location =
    (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
    <option value=''>Select Month</option>
    <?php get_archives('monthly','','option'); ?>
    </select>
    </form>

    THANKS!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bluqueen777

    (@bluqueen777)

    Problem resolved. I had found the appropriate code via the Codex, but it was making my page render strangely. So I thought I would stick with what was working, i.e. the above.

    I tinkered on the code a little more. Turns out a few category names were a little long, and therefore messing the page format. I edited the names and got everything working. Thanks for your help! ??

    Hey, could you please post the revised code please? I’d really like to do the same thing you were trying to do!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Archive by Category/Dropdown’ is closed to new replies.