Like the blog? Get the book »

Daily archives: Friday, October 29, 2010

Archive page 1 of 1
Dynamic Archives

Dynamic Archives

Have you ever seen WordPress archives where you select something (usually a month/year) from a dropdown and it takes you to a page where you can view that? It’s fairly common. WordPress almost has built in functionality for it, since you can specifically tell the wp_get_archives() function that you want the values to be returned as <option></option>s. We can kick it up a notch though, and make the results show dynamically on the same page as the dropdowns through some Ajaxy JavaScript. We’ll even allow for multiple dropdowns (include the category as well) and make sure it’s flexible for your own alterations.

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace