[WordPress] 外掛分享: Ajax Load More: REST API

WordPress 外掛 Ajax Load More: REST API 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Ajax Load More: REST API」是 2017-03-07 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2024-12-05,距離現在已有 149 天。
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

dcooney | connekthq |

外掛標籤

rest-api | Endpoints | lazy load | ajax load more | infinite scroll |

內容簡介

這個 REST API 擴充外掛可以使 Ajax Load More 和 WP REST API 外掛之間相容。

輕鬆透過 HTTP REST API 存取您的網站資料(以 JSON 格式),再利用 Ajax Load More 的無限捲動功能美觀地顯示結果。

REST API

作法

REST API 擴充外掛透過將標準的 Ajax Load More admin-ajax.php 請求路由到 API 端點以取得資料。資料以 JSON 格式回傳,再使用 Underscore.js 樣式模板在網站前端進行解析並顯示。

使用簡單的 GET 請求、一個 JavaScript Repeater 模板和專為 Ajax Load More 開發的自訂端點 (/wp-json/ajaxloadmore/posts),使用者可以存取網站資料並使用 WP REST API 實現無限滾動。

查看範例

原文外掛簡介

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.

REST API


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.
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 API.
View Example

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Ajax Load More: REST API」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0 | 1.2.2 | 1.2.3 | 1.2.4 | trunk |

延伸相關外掛(你可能也想知道)

  • SysBasics Customize My Account for WooCommerce 》Customize My Account for WooCommerce, 自訂你的預設「我的帳戶」(My Account) 頁面。重新排序它們,隱藏現有的核心端點 (endpoints),還能更改預設端點。, ...。
  • SMNTCS Disable REST API User Endpoints 》隨著 WordPress 4.7 的推出,REST API 已經成為核心的一部分。目前,每個人都可以讀取 REST API。因此,潛在的入侵者可以通過 /wp-json/wp/v2/users 檢索所有...。
  • REST API Custom Fields 》這個外掛增強了 WordPress REST API v2 有關元數據(metadata)的回應。。
  • Better Rest Endpoints 》這是一個 WordPress 外掛,可以提供更簡潔的 WP Rest API endpoints,並增加了一些不錯的改進,例如支援 ACF 字段、WordPress 菜單 endpoints 等等。您可以在...。
  • Customize Dokan Dashboard Endpoints 》- Modify existing endpoints- Add custom links to dokan vendor dashboard- Drag and drop UI- Reorder core dokan dashboard endpoints- Add icon to exis...。

文章
Filter
Apply Filters
Mastodon