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
Hello guys, one thing that kept me from using wp-api for a long time is the workarounds that are needed to query multiple post types in a single request (as with WP_Query). So I was wondering, is there any elegant way to achieve this using this library?
An example would be a website with different kinds of posts like recipes and news, where I wanted to make a search which will return both post types. Is there any easy to achieve solution using this library? (maybe it's out of the scope of the library too, but I would love some guidance, also could be useful to update the docs with additional info)
Thanks in advance!
The text was updated successfully, but these errors were encountered:
There is not a way to do this currently. The best we can offer is the new Search endpoint, which will be released in the next version of this library (which will offer full WP 5.0 compatibility). I hope to make progress on that upgrade over the holiday season.
Hello guys, one thing that kept me from using
wp-api
for a long time is the workarounds that are needed to query multiple post types in a single request (as withWP_Query
). So I was wondering, is there any elegant way to achieve this using this library?An example would be a website with different kinds of posts like
recipes
andnews
, where I wanted to make a search which will return both post types. Is there any easy to achieve solution using this library? (maybe it's out of the scope of the library too, but I would love some guidance, also could be useful to update the docs with additional info)Thanks in advance!
The text was updated successfully, but these errors were encountered: