WordPress.org

Ready to get started?Download WordPress

Forums

Drop-Down Archives (4 posts)

  1. thedeser
    Member
    Posted 7 years ago #

    Hello, I am new to WordPress and to HTML -- I know nothing. I am wanting to make my Archive list on the sidebar a drop down menu, which I believe is possible. Is there an easy way I can do this with a plug-in or widget? Thanks.

  2. Samuel B
    moderator
    Posted 7 years ago #

  3. moshu
    Member
    Posted 7 years ago #

  4. wendyhouse
    Member
    Posted 6 years ago #

    I found this supported code recently that I've posted in my sidebar and it works:

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.