Home
Softono

Wp Api Multiple Posttype

Open source PHP
47
Stars
7
Forks
3
Issues
5
Watchers
7 years
Last Commit

 About Wp Api Multiple Posttype

wordpress wp rest api v2 extension of wp/v2/posts api to allow query multiple post types

Platforms

Web Self-hosted

Languages

PHP

Links

Need Help Installing Wp Api Multiple Posttype?

We provide expert installation service for this software. Our team will install, configure, and secure Wp Api Multiple Posttype on your server. plans start at just $30.

Wp Api Multiple Posttype

View on GitHub

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

Credits

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

GPL-3.0-or-later