[WordPress] 外掛分享: REST API Multiple Post Types

首頁外掛目錄 › REST API Multiple Post Types
50+
安裝啟用
尚無評分
3131 天前
最後更新
問題解決
WordPress 4.7+ v0.1.0 上架:2017-08-21

內容簡介

若 WordPress 外掛中的文章類型使用 WordPress REST API(在聲明文章類型時,show_in_rest 必須設為 true),則可以使用 /wp/v2/posts 進行查詢。

查詢範例

GET wp/v2/posts?type=roy

GET wp/v2/posts?type[]=roy&type[]=mike

提供免費外掛的Caldera Labs,同時也是拖曳式回應式表單建立器Caldera Forms的開發商。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

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

原文外掛簡介

Any post type that works with the WordPress REST API (show_in_rest must be true when declaring post type) will be queryable with /wp/v2/posts
Example Queries

GET wp/v2/posts?type=roy

GET wp/v2/posts?type[]=roy&type[]=mike
A free plugin by Caldera Labs the makers of Caldera Forms a drag and drop responsive form builder.

文章
Filter
Mastodon