How to Display Archives for a Particular Category

The functionality to display archives for a particular category is strangely not part  of WordPress default functionality, despite a Google search revealing many questions relating to this functionality.

If you’re one of these people asking for help on this topic, you’ve come to the right place as we have finally found the solution in the form of a plugin aptly named Archives for a Category.

After installing this plugin you will now be able to display archives for one category by using the following code:

To build a sidebar which detects the category automatically and displays the archives, you cna use the following code:

If you enjoyed this post, make sure to subscribe to WPMayor’s RSS feed.

About Jean Galea

Jean Galea is a WordPress developer, entrepreneur and padel player. He is the founder of WP Mayor, the plugins WP RSS Aggregator and EDD Bookings, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Related Articles