• hello,

    I have a question.
    I want to use searching function using rest api, but I can only specify a custom post type in the searching query. For example, “/wp-json/wp/v2/product?search=ipod”

    I need to include another custom post types as well.
    Is there any way to include every post type?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Either make a custom endpoint that does that or make multiple requests (one for each post type) and merge the results.

    Hi,

    Will you please let us know how to put OR conditions for search query here. I guess, by replacing spaces with + signs, you have AND conditions over search & so it is limiting the results. Kindly let us know what can be done here.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘searching multiple custom post types using rest api’ is closed to new replies.