The REST API extension will enable compatibility between Ajax Load More and the WP REST API plugin.
REST API扩展将实现Ajax Load More与WP REST API插件之间的兼容性。 p>
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.
通过HTTP REST API轻松访问您的网站数据(作为JSON),并通过Ajax Load More的无限滚动之美显示结果。 p>
https://connekthq.com/plugins/ajax-load-more/extensionsest-api/
https://connekthq.com/plugins/ajax-load-more/extensionsest-api/ p>
How It Works
工作原理 h4>
The REST API add-on works by routing the standard Ajax Load More admin-ajax.php requests through to API endpoints for data retrieval.
REST API附加组件通过将标准Ajax Load More admin-ajax.php请求路由到API端点进行数据检索来工作。
The data is returned as JSON, then parsed and displayed using Underscore.js styled templates on the front-end of your website.
数据以JSON格式返回,然后使用网站前端的Underscore.js样式模板进行解析和显示。 p>
Using a simple GET request, a JavaScript Repeater Template and a custom endpoint (/wp-json/ajaxloadmore/posts) developed specifically for Ajax Load More, users are able to access website data and infinite scroll the results using the WP REST
使用一个简单的GET请求,一个JavaScript Repeater模板和一个专门为Ajax Load More开发的自定义终结点(/ wp-json / ajaxloadmore / posts),用户可以使用WP REST访问网站数据并无限滚动结果
API.
API。 p>
View Example 查看示例 strong>
strong> p>