Problem with post dropdown archive box
-
Hey guys,
Can anyone help. I have a post archives dropdown box on the sidebar of several pages of my site. For some reason whatever month you click on re-directs back to the home page instead of showing the correct posts. The site is boutiquehandbags dot co dot uk. Here is the code i am using to create the dropdown box. Any help is very much appreciated.
<select name="archive-dropdown" class="postform" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option value=""><?php echo esc_attr( __( 'Select Month' ) ); ?></option> <?php wp_get_archives( array( 'type' => 'monthly', 'format' => 'option', 'show_post_count' => 1 ) ); ?> </select>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem with post dropdown archive box’ is closed to new replies.