跳到内容

REST API Multiple Post Types

v0.1.0

Josh 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums