Filter post within a category by year
-
Hi there
I’m making a portfolio and I need to create a dropdown menu to filter post within a custom category by year.
I found this piece of code. I included this into my archive.php but it brings all post no matter its category:
<select name="archive-menu"> <option value="">Select Year</option> <?php wp_get_archives('type=yearly&format=option'); ?> </select>
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Filter post within a category by year’ is closed to new replies.