WordPress.org

Forums

[resolved] Category specific monthly archives as navigation (2 posts)

  1. zefdesign
    Member
    Posted 5 years ago #

    I am using a drop down of the monthly archives as a means for navigation. However it displays a list of the archives of ALL categories. How can I make it display the archives of whatever category you are currently viewing?

    eg, viewing blog archives, click dropdown and see ONLY the archives from the blog category.

    <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>

    That's the code I have. Thanks

  2. David Calhoun
    Member
    Posted 5 years ago #

    What was the solution that you found?

Topic Closed

This topic has been closed to new replies.

About this Topic