You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Gets a collection of posts. Accepts the following parameters:
18
18
- exclude (int) a post ID to exclude from the response
19
19
- author (string) limit posts by author nice name (user_nicename)
20
20
- acf (boolean - setting to false omits `acf` from being returned)
21
+
- yoast (boolean - setting to false omits `yoast` from being returned)
21
22
- media (boolean - setting to false omits `media` (featured media) from being returned)
22
23
23
24
It returns a JSON response with the following:
@@ -34,6 +35,7 @@ It returns a JSON response with the following:
34
35
- Tags
35
36
- Tag IDs
36
37
- ACF fields, if applicable
38
+
- Yoast SEO fields, if applicable
37
39
38
40
### Post
39
41
**`better-rest-endpoints/v1/post/{id}`**
@@ -58,6 +60,7 @@ Returns a JSON response with the following:
58
60
- Tags
59
61
- Tag IDs
60
62
- ACF fields, if applicable
63
+
- Yoast SEO fields, if applicable
61
64
62
65
### Post by slug
63
66
**`better-rest-endpoints/v1/post/{slug}`**
@@ -82,6 +85,7 @@ Returns a JSON response with the following:
82
85
- Tags
83
86
- Tag IDs
84
87
- ACF fields, if applicable
88
+
- Yoast SEO fields, if applicable
85
89
86
90
### Pages
87
91
**`better-rest-endpoints/v1/pages`**
@@ -95,6 +99,7 @@ Gets a collection of pages. Accepts the following parameters:
95
99
- content (boolean - setting to false hides the content from the response)
96
100
- exclude (int) a post ID to exclude from the response
97
101
- acf (boolean - setting to false omits `acf` from being returned)
102
+
- yoast (boolean - setting to false omits `yoast` from being returned)
98
103
- media (boolean - setting to false omits `media` (featured media) from being returned)
99
104
100
105
Returns the following JSON Response:
@@ -105,6 +110,7 @@ Returns the following JSON Response:
105
110
- Title
106
111
- Content
107
112
- ACF Fields
113
+
- Yoast SEO Fields
108
114
- all possible thumbnail sizes & URLs
109
115
110
116
### Page by ID
@@ -124,6 +130,7 @@ Returns a JSON response with the following:
124
130
- content
125
131
- all possible thumbnail sizes & URLs
126
132
- ACF fields, if applicable
133
+
- Yoast SEO fields, if applicable
127
134
128
135
### Custom Post Type Collection
129
136
**`better-rest-endpoints/v1/{custom_post_type}`**
@@ -135,6 +142,7 @@ Gets a collection of posts from a custom post type. Accepts the following parame
135
142
- orderby (string) - see the [codex](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters) for options, currently does not support multiple values
136
143
- exclude (int) a post ID to exclude from the response
137
144
- acf (boolean - setting to false omits `acf` from being returned)
145
+
- yoast (boolean - setting to false omits `yoast` from being returned)
138
146
- media (boolean - setting to false omits `media` (featured media) from being returned)
139
147
140
148
Returns the following JSON response:
@@ -149,6 +157,7 @@ Returns the following JSON response:
@@ -187,6 +197,7 @@ Returns the following JSON Response:
187
197
- all possible thumbnail sizes & URLs
188
198
- Author, user_nicename, & Author ID
189
199
- ACF Fields, if applicable
200
+
- Yoast SEO Fields, if applicable
190
201
191
202
### Get Posts Belonging To A Taxonomy Term
192
203
**`better-rest-endpoints/v1/{taxonomy}/{term}`**
@@ -198,6 +209,7 @@ Gets posts from a taxonomy term. Accepts the following parameters:
198
209
- orderby (string) - see the [codex](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters) for options, currently does not support multiple values
199
210
- exclude (int) a post ID to exclude from the response
200
211
- acf (boolean - setting to false omits `acf` from being returned)
212
+
- yoast (boolean - setting to false omits `yoast` from being returned)
201
213
- media (boolean - setting to false omits `media` (featured media) from being returned)
202
214
203
215
Returns the following JSON Response:
@@ -212,6 +224,7 @@ Returns the following JSON Response:
212
224
- all possible thumbnail sizes & URLs
213
225
- Author, user_nicename, & Author ID
214
226
- ACF Fields, if applicable
227
+
- Yoast SEO Fields, if applicable
215
228
216
229
### Menus
217
230
**`better-rest-endpoints/v1/menus/{menu-slug}`**
@@ -251,6 +264,7 @@ Gets a collection of posts and pages based on the search parameter. Accepts the
251
264
- content (boolean) set to false to omit content from showing in JSON response
252
265
- search (string | required)
253
266
- acf (boolean - setting to false omits `acf` from being returned)
267
+
- yoast (boolean - setting to false omits `yoast` from being returned)
254
268
- media (boolean - setting to false omits `media` (featured media) from being returned)
255
269
256
270
It returns a JSON response with the following (returns an empty array if no posts found):
@@ -267,6 +281,7 @@ It returns a JSON response with the following (returns an empty array if no post
0 commit comments