Skip to content

Commit 973234e

Browse files
author
Salil Kothadia
committed
Readme update
1 parent b8626c6 commit 973234e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@
22

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

5+
56
## About
67

7-
Want to get your site's posts, pages, articles, events/?
8-
Endpoint is '/wp-json/wp/v2/multiple-post-type'
9-
`GET` request to `/wp-json/wp/v2/multiple-post-type`.
10-
Get the page with slug "about-me"? `GET /wp-json/wp/v2/multiple-post-type?slug=about-me`.
11-
search term "awesome"? `GET /wp-json/wp/v2/multiple-post-type?search=awesome`.
8+
Want to get your site's posts, pages, articles, events?
9+
10+
Use the Endpoint: '/wp-json/wp/v2/multiple-post-type'
11+
12+
List: `GET` request to `/wp-json/wp/v2/multiple-post-type`.
13+
14+
Get the page with slug "about-me": `GET /wp-json/wp/v2/multiple-post-type?slug=about-me`.
15+
16+
Search term "awesome": `GET /wp-json/wp/v2/multiple-post-type?search=awesome`.
17+
1218

1319
## Credits
1420

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

24+
1825
## License
1926

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

0 commit comments

Comments
 (0)