WordPress.org

Support

Support » How-To and Troubleshooting » dropdown jump menu with categories?

dropdown jump menu with categories?

  • grinneller
    Member

    @grinneller

    Hi,

    I’ve found some code that’s working to make a dropdown jump menu for the monthly archives, but can’t seem to get it to work for categories. Here’s what I’m using:

    <?php
    
    echo "<select name='archive-dropdown3' onChange='document.location.href=this.options[this.selectedIndex].value;'>
    <option value=''>";
    echo attribute_escape(__('Browse by Month'));
    echo "</option>";
    wp_get_archives('type=monthly&format=option&show_post_count=1');
    echo "</select>";
    
    ?>

    I’ve tried wp_list_categories, and the_category, but can’t get either to work with the above code. Any ideas?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘dropdown jump menu with categories?’ is closed to new replies.