A couple of months ago, I did a short series on Envato on Ajax in the WordPress Dashboard. This month, I’m continuing to talk about Ajax in WordPress and how to include it on the frontend in your themes, plugins, and other projects.
Though the Codex has two great articles on Ajax in WordPress – that is, the introduction and how to use it on the server-side – there’s not a lot of documentation for how to implement it on the front end
In this series, I attempt to give a complete overview in which I define the process, how it works, and how to implement it within your theme. Then, I share a working example going through the plugin as it’s being built.
Ajax in WordPress
This page will be serving as the landing page for the articles in the series.
A Primer On The Ajax Frontend
If you’re an advanced developer and are looking for the sample project used in the series, then check out my “I’ve Read This” plugin on GitHub.
From the README:
An example plugin developed to demonstrate how to include Ajax operations in the frontend of WordPress.
For users who are logged in, the plugin will display a checkbox at the bottom of each post that will allow them to mark a post as read. If the post has been marked as read, the user will simply see a label noting such.
As the series continues to run, I’ll be sure to update this particular page with the rest of the articles.