Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying multiple custom post types + posts #380

Open
eddiemf opened this issue Jul 6, 2018 · 1 comment
Open

Querying multiple custom post types + posts #380

eddiemf opened this issue Jul 6, 2018 · 1 comment
Milestone

Comments

@eddiemf
Copy link

eddiemf commented Jul 6, 2018

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!

@kadamwhite
Copy link
Collaborator

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.

@kadamwhite kadamwhite added this to the 2.0 milestone Dec 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants