Skip to content

Commit 142e45b

Browse files
author
Salil Kothadia
committed
Update documentation about passing type param
1 parent e6bed12 commit 142e45b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ Use the Endpoint: '/wp-json/wp/v2/multiple-post-type'
1111

1212
List: `GET` request to `/wp-json/wp/v2/multiple-post-type`.
1313

14-
Get the page with slug "about-me": `GET /wp-json/wp/v2/multiple-post-type?slug=about-me&type[]=posts&type[]=pages&type[]=articles&type[]=events`.
14+
Get the page with slug "about-me":
1515

16-
Search term "awesome": `GET /wp-json/wp/v2/multiple-post-type?search=awesome&type[]=posts&type[]=pages&type[]=articles&type[]=events`.
16+
`GET /wp-json/wp/v2/multiple-post-type?slug=about-me&type[]=posts&type[]=pages&type[]=articles&type[]=events`.
17+
18+
Search term "awesome":
19+
20+
`GET /wp-json/wp/v2/multiple-post-type?search=awesome&type[]=posts&type[]=pages&type[]=articles&type[]=events`.
1721

1822

1923
## Credits

0 commit comments

Comments
 (0)