Introduction to WordPress REST API
Introduction to WordPress REST API

Out of the box, WordPress comes with all the necessary functionality to work with APIs. Interaction with the WordPress REST API is handled via endpoint classes located in the “/wp-includes/rest-api/endpoints” directory. So, if you have any questions about how something works, what filters are supported in search, or which hooks are available — I recommend first taking a look at that directory. It contains plenty of information to help you understand, sometimes confusingly presented, but thanks to modern editors, everything is searchable.

read more...

Lesson 6. Displaying a list of posts on a page and pagination
Lesson 6. Displaying a list of posts on a page and pagination

Today’s article concludes the series of lessons on developing an autocomplete plugin. Due to the plugin's functionality expansion, many changes have been made. So we’ll need to go through the code from the very beginning again, but without too many details. In short, two additional shortcodes have been added for more flexible output manipulation. One shortcode displays the list of posts, the other — the pagination.

read more...