REST API
Infinite scrolling with Ajax Load More and the WP REST API
In this example:
Ajax Load More will infinite scroll posts using the REST API extension and the WordPress REST API.
The following shortcode was used to create the REST API example.
[ajax_load_more repeater="template_32" restapi="true" restapi_base="/wp-json" restapi_namespace="ajaxloadmore" restapi_endpoint="posts" restapi_template_id="alm-template" restapi_debug="true" posts_per_page="4" seo="true"]
The following Repeater Template was used to create the REST API example.