The REST API extension will enable compatibility between Ajax Load More and the WP REST API plugin.
Easily access your website data (as JSON) through an HTTP REST API and display the results using the beauty of infinite scrolling with Ajax Load More.
How It Works
The REST API add-on works by routing the standard Ajax Load More admin-ajax.php requests through to API endpoints for data retrieval. The data is returned as JSON, then parsed and displayed using Underscore.js styled templates on the front-end of your website.
Uploading in WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Navigate to the ‘Upload’ area
ajax-load-more-rest-api.zipfrom your computer
- Click ‘Install Now’
- Activate the plugin in the Plugin dashboard
- Extract the
ajax-load-more-rest-apidirectory to your computer.
- Upload the
ajax-load-more-rest-apidirectory to the
- Ensure Ajax Load More is installed prior to activating the plugin.
- Activate the plugin in the WP plugin dashboard.
What is a Namespace in an API endpoint?
Namespaces are the first part of the URL for the endpoint. Namespaces allows for two plugins to add a route of the same name, with different functionality.
Need more info? Read the official documentation on Namespacing.
I want to create some custom API endpoints, where should I save them?
You should add your custom endpoints to the functions.php file in your current theme directory.
Can I use a regular PHP based Repeater Template with this add-on?
Are all Ajax Load More shortcode parameters available with the REST API add-on?
Yes! As long as you are using the default /wp-json/ajaxloadmore/posts endpoint all values passed via shortcode will be parsed in your API call.
There are no reviews for this plugin.
Contributors & Developers
“Ajax Load More: REST API” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
1.2.1 – January 20, 2021
- UPDATE – Updated REST API endpoint to include
permissions_callbackwhich is now required to remove PHP notices/warnings.
1.2 – March 14, 2017
- NOTICE – Moved extension to .org repo.
- UPDATE – Removed REST API plugin Requirement if core WP 4.7 or greater is running.
1.1 – September 5, 2016
- MILESTONE – Must update core Ajax Load More to 2.12.0 when updating this add-on.
- UPDATE – Updated endpoint + js function to hold new return data to match core ALM for posts and total posts
= 1.0 – June 5, 2016=
* Initial Release.