Title: REST API Multiple Post Types
Author: Josh Pollock
Published: <strong>2017 年 8 月 22 日</strong>
Last modified: 2017 年 8 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/rest-api-multiple-post-types.svg)

# REST API Multiple Post Types

 作者：[Josh Pollock](https://profiles.wordpress.org/shelob9/)

[下载](https://downloads.wordpress.org/plugin/rest-api-multiple-post-types.0.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/rest-api-multiple-post-types/#description)
 * [评价](https://cn.wordpress.org/plugins/rest-api-multiple-post-types/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/rest-api-multiple-post-types/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/rest-api-multiple-post-types/#developers)

 [支持](https://wordpress.org/support/plugin/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](http://calderalabs.org?utm_source=dotOrg&utm_medium=plugins&utm_campaign=rest-api-multiple-post-types)
   the makers of [Caldera Forms](https://calderaforms.com?utm_source=dotOrg&utm_medium=plugins&utm_campaign=rest-api-multiple-post-types)
   a drag and drop responsive form builder.

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->Plugin Name screen to configure the plugin
 4. (Make your instructions match the desired user flow for activating and installing
    your plugin. Include any steps that might be needed for explanatory purposes)

## 常见问题

  A question that someone might have

An answer to that question.

  Why Isn’t My Post Type Showing Up?

It must be declared with show_in_rest = true.

## 评价

此插件暂无评价。

## 贡献者及开发者

「REST API Multiple Post Types」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Josh Pollock ](https://profiles.wordpress.org/shelob9/)

[帮助将「REST API Multiple Post Types」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rest-api-multiple-post-types)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/rest-api-multiple-post-types/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/rest-api-multiple-post-types/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/rest-api-multiple-post-types/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/rest-api-multiple-post-types/)。

## 更新日志

#### 0.1.0

First release.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**9 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rest-api-multiple-post-types/)
 * 标签
 * [caldera](https://cn.wordpress.org/plugins/tags/caldera/)[hi roy](https://cn.wordpress.org/plugins/tags/hi-roy/)
   [rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)[wp-api](https://cn.wordpress.org/plugins/tags/wp-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/rest-api-multiple-post-types/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/rest-api-multiple-post-types/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/rest-api-multiple-post-types/reviews/)

## 贡献者

 *   [ Josh Pollock ](https://profiles.wordpress.org/shelob9/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/rest-api-multiple-post-types/)