WP Rest Api V2 Multiple PostTypes

WP Rest Api V2 Multiple PostTypes Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 2,534 downloads
WP Rest Api V2 Multiple PostTypes Icon

Try plugin: WP Rest Api V2 Multiple PostTypes

We'll create fresh WordPress site with WP Rest Api V2 Multiple PostTypes installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About WP Rest Api V2 Multiple PostTypes

Multiple Content type Query API for Wordpress Rest Api V2

0


0


0


0


0

updated: 6 years ago
since: 7 years ago
author: ElevatiInfotech

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