
內容簡介
可顯示最新文章和按類別顯示文章的 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 將自動為您更新外掛。
外掛標籤
開發者團隊
原文外掛簡介
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.
