• Resolved tjb1187

    (@tjb1187)


    Hi, just started working with your app, great work! Very useful.

    Could you please provide some instruction on how to complete multiple meta queries in one http request? I tried your example and cannot get it to work. What is the format for each query?

    Thanks,
    Tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sk8tech

    (@sk8tech)

    @tjb1187

    Thank you for downloading the plugin. What have you tried that does not work?

    Please provide a detail description.

    Plugin Author sk8tech

    (@sk8tech)

    Since we haven’t heard back from you in over 3 days, I’m marking this ticket as resolved. If you need further assistance, please feel free to reopen the ticket.

    Thread Starter tjb1187

    (@tjb1187)

    Hi sorry for the delayed response, I was off line for a while. I’m trying to filter results by multiple fields.

    I have a post type named ‘boats’ and I would like to fetch results based a field named ‘length’ and ‘make’. I have tailored the example code you provided on the plugin page. Lets say I was looking for a boat that length=58 and make=viking, I am doing the following:

    fetch( 'https://domain.com/wp-json/wp/v2/boats?filter[meta_query][0][key]=length&filter[meta_query][0][value]=58&filter[meta_query][1][key]=make&filter[meta_query][1][value]=Viking')

    But this returns nothing. Could you please help? Is there something I’m missing.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Meta Query’ is closed to new replies.