Posted By

selfmadepsyche on 02/17/09


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

rezzz


Display Archives Normally or in a Drop-Down Box


 / Published in: PHP
 

  1. <h2>Archives</h2>
  2. <ul>
  3. <?php wp_get_archives('type=monthly'); ?>
  4. </ul>
  5.  
  6.  
  7. <select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;’>
  8. <option value=\”\”><?php echo attribute_escape(__(’Select Month’)); ?></option>
  9. <?php wp_get_archives(’type=monthly&format=option&show_post_count=1); ?> </select>

Report this snippet  

You need to login to post a comment.