Skip to content

Querying multiple custom post types + posts #380

Open
@eddiemf

Description

@eddiemf

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions