Create Date Archives Page – VueJS WordPress Theme

WordPress Theme

In this tutorial, we're going to build a date archives page for your WordPress theme so that you can display a list of your previous posts sorted by date.

If we were building a normal WordPress theme we could simply use the function wp_get_archives which returns the HTML to display the date archives. As we're using the VueJS and the REST API we can't just call this function, so we need to make a call to the API to get the data we need.

Archives REST . . .

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To Newsletter

Get weekly updates to your email