I’ve been poking around for some time, and maybe these are out of style, but it is what my client wants.
Is it still possible to create drop down menus for archives and categories in sidebar widgets? I’ve tried this code without luck, I just get an empty drop down box:
<select name="archive-dropdown" 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>
I haven’t tried much with the categories drop down yet.
- The topic ‘Drop down menus for archives and categories’ is closed to new replies.