Title: WP Rest Api V2 Multiple PostTypes
Author: salilkothadia
Published: <strong>février 27, 2017</strong>
Last modified: juillet 12, 2018

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# WP Rest Api V2 Multiple PostTypes

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

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

 * [Details](https://tah.wordpress.org/plugins/wp-api-multiple-posttype/#description)
 * [Reviews](https://tah.wordpress.org/plugins/wp-api-multiple-posttype/#reviews)
 * [Development](https://tah.wordpress.org/plugins/wp-api-multiple-posttype/#developers)

 [Support](https://wordpress.org/support/plugin/wp-api-multiple-posttype/)

## Description

### 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)

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WP Rest Api V2 Multiple PostTypes” is open source software. The following people
have contributed to this plugin.

Contributors

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

[Translate “WP Rest Api V2 Multiple PostTypes” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-api-multiple-posttype)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-api-multiple-posttype/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-api-multiple-posttype/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-api-multiple-posttype/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-api-multiple-posttype/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.3**
 *  Last updated **8 années ago**
 *  Active installations **100+**
 *  WordPress version ** 4.8 or higher **
 *  Tested up to **4.9.29**
 *  PHP version ** 5.2.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-api-multiple-posttype/)
 * Tags
 * [api](https://tah.wordpress.org/plugins/tags/api/)[JSON](https://tah.wordpress.org/plugins/tags/json/)
   [posttypes](https://tah.wordpress.org/plugins/tags/posttypes/)[restapi](https://tah.wordpress.org/plugins/tags/restapi/)
   [v2](https://tah.wordpress.org/plugins/tags/v2/)
 *  [Advanced View](https://tah.wordpress.org/plugins/wp-api-multiple-posttype/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/wp-api-multiple-posttype/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-api-multiple-posttype/)