How do I get results by meta field value?

This topic contains 5 replies, has 3 voices, and was last updated by  Kiran 4 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #499189

    Aleks Szymanski
    Free User
    Post count: 23

    I have a post type called “Gear” that has a custom field called “Level”. How would I only get posts that have the value “Beginner” for the “Level” field?

    I’m envisioning something like:

    http://mysite.com/wp-json/geodir/v2/gear?level=Beginner

    But I know that’s not right.

    Thanks!

    #499228

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Aleks,

    I have flagged your topic for the developers.

    Thanks for your patience while they look into it.

    #499311

    Kiran
    Moderator
    Post count: 7069

    Hello Aleks,

    API route you mentioned is correct to search for Beginner. But i checked and it looks like WordPress has something changed in API that affected the GD API searching.

    We have opened task to check and fix this issue.

    Kiran

    #499556

    Aleks Szymanski
    Free User
    Post count: 23

    Thanks Alex and Kiran! I’ll look forward to the solution. 🙂

    #500789

    Aleks Szymanski
    Free User
    Post count: 23

    Hello, just checking to see if there is any update on this?

    Thanks!

    #501383

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket