Title: WP Rest Api V2 Multiple PostTypes
Author: salilkothadia
Published: <strong>2017 年 2 月 27 日</strong>
Last modified: 2018 年 7 月 12 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/wp-api-multiple-posttype.svg)

# WP Rest Api V2 Multiple PostTypes

 由 [salilkothadia](https://profiles.wordpress.org/salilkothadia/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-api-multiple-posttype.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-api-multiple-posttype/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-api-multiple-posttype/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-api-multiple-posttype/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-api-multiple-posttype/)

## 外掛說明

### Multiple Content type Query API for WordPress Rest Api V2

Extension of wp/v2/posts api to allow query multiple post types

### About

Want to get your site’s posts, pages, articles, events?

Use the Endpoint: ‘/wp-json/wp/v2/multiple-post-type’

List:

    ```
    GET request to `/wp-json/wp/v2/multiple-post-type?&type[]=post&type[]=page`
    ```

Get the page with slug “about-me”:

    ```
    GET /wp-json/wp/v2/multiple-post-type?slug=about-me&type[]=post&type[]=page
    ```

Search term “awesome”:

    ```
    GET /wp-json/wp/v2/multiple-post-type?search=awesome&type[]=post&type[]=page&type[]=articles<h3>Credits</h3>
    ```

Build using the code shared by Ruben Vreeken, (https://github.com/Rayraz)
 on stackoverflow(
http://stackoverflow.com/questions/38059805/query-multiple-post-types-using-wp-rest-
api-v2-wordpress)

### License

[GPLv3](http://www.gnu.org/licenses/gpl-3.0.html)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈WP Rest Api V2 Multiple PostTypes〉的開發相關工作。

參與者

 *   [ salilkothadia ](https://profiles.wordpress.org/salilkothadia/)

[將〈WP Rest Api V2 Multiple PostTypes〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-api-multiple-posttype)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-api-multiple-posttype/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-api-multiple-posttype/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-api-multiple-posttype/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-api-multiple-posttype/)。

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **8 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 4.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.9.29**
 *  PHP 版本需求 ** 5.2.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-api-multiple-posttype/)
 * 標籤:
 * [api](https://tw.wordpress.org/plugins/tags/api/)[JSON](https://tw.wordpress.org/plugins/tags/json/)
   [posttypes](https://tw.wordpress.org/plugins/tags/posttypes/)[restapi](https://tw.wordpress.org/plugins/tags/restapi/)
   [v2](https://tw.wordpress.org/plugins/tags/v2/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-api-multiple-posttype/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-api-multiple-posttype/reviews/)

## 參與者

 *   [ salilkothadia ](https://profiles.wordpress.org/salilkothadia/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-api-multiple-posttype/)