Simple WordPress Archive Dropdown List Code

Back then, my blogs used the WordPress plugin Clean Archives Reloaded to display the archives list in a page. Time and time again, I get to encounter problems which I do not know anything about leaving me mystified as to the cause.

Finally, I have had it! I decided to use WordPress’ conventional code to display the archives list … as a dropdown. Since my archives list is located in a page, placing PHP code in it will do nothing because it will treat the content as pure text.

There is a WordPress plugin called Exec-PHP that executes PHP code found in pages or posts. You only need to place the tag between them in order for the code to execute. The code below uses the default wp_get_archives() function to display the archives list as a dropdown. Saves you space, right?

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *