REST API Multiple Post Types
v0.1.0Josh Pollock · 2017年8月22日 上架
Query multiple post types using /wp/v2/posts
- 正在使用
- 50+
- 评分
- 暂无
- 累计下载
- 4,815
- 最近更新
- 2017年8月23日
需要 WordPress 4.7+已测试到 4.8.35
贡献者
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.