Create Date Archives Page – VueJS 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 . . .
Subscribe To Newsletter
Get weekly updates to your email