Form for Archives
-
I am trying to setup a drop down that would enable users to select month, day, and year then return the specified date.
I found this, but how would I add day and year?
<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>
Second question, if I use something like this:
<?php /* If this is a category archive */ elseif (is_category()) { ?> <?php single_cat_title(); ?>
Could I had a category id # in there? “elseif (is_category(‘105’))” I ultimately want to display a customized drop down on each category archive.
Thank you.
- The topic ‘Form for Archives’ is closed to new replies.