DEV Community

loading...
Cover image for How to create a WordPress posts archive with REST API and ajax - A practical example

How to create a WordPress posts archive with REST API and ajax - A practical example

amitbiswasta profile image Amit Biswas ・1 min read

In this tutorial, we shall learn about a different approach of making posts archive in a WordPress site. Instead of the default WordPress loop or WP_Query(), we will be using WordPress REST API and jQuery Ajax. Here's the codepen that we shall try to achieve. You can find the full tutorial here - WordPress posts archive with REST API and ajax.

Discussion (0)

pic
Editor guide