[WordPress] 外掛分享: API REST Posts

首頁外掛目錄 › API REST Posts
WordPress 外掛 API REST Posts 的封面圖片
10+
安裝啟用
尚無評分
61 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.0+ v1.2 上架:2020-02-25

內容簡介

可顯示最新文章和按類別顯示文章的 WordPress 外掛

功能

可顯示最新文章。
可按類別顯示最新文章。
可自訂日期格式。
可限制 excerpt 的文字數量。

使用方法

TU_DOMINIO/wp-json/last-post/v2/category/2/numberposts/3 (可獲取指定類別的最新文章)

其中 “/category/2” 為指定類別的 ID,“/numberpost/3” 為想獲取的文章數。

TU_DOMINIO/wp-json/last-post/v2/numberposts/3 (可獲取最新文章)

隱私

此外掛不會收集或存儲任何用戶數據,並且不會設置任何 cookie 或連接到任何第三方位置。因此,此外掛不會以任何方式影響用戶的隱私。

安裝

安裝方式

在外掛庫中搜尋 “API REST Posts” 並安裝。
上傳外掛並啟用。

瞭解更多有關安裝 WordPress 外掛的資訊

更新

只需在外掛頁面點擊 “更新”,WordPress 將自動為您更新外掛。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「API REST Posts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

API REST Posts adds two public REST API endpoints for listing recent posts:

Latest posts from a specific category.
Latest posts from the whole site.

The plugin settings page lets site administrators configure the date format and the number of words returned in each excerpt. Each post response also includes category data.
Privacy
This plugin does not collect or store user data, does not set cookies, and does not connect to third-party services.

延伸相關外掛

文章
Filter
Mastodon