Filter Options

This topic contains 3 replies, has 3 voices, and was last updated by  Kiran 7 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #366032

    Moez Tharani
    Full Member
    Post count: 60

    Is there a way to filter via the API? Let’s say I only wanted to show results that have Is Featured enabled (is_featured=1). Wasn’t able to find anything in the API docs.

    #366194

    Paolo
    Site Admin
    Post count: 31206

    The developers have been alerted and they will reply to your question asap.

    Thanks for your patience,

    #366289

    Kiran
    Moderator
    Post count: 7069

    Hi Moez,

    Currently there is not options available to filter API results. I have added task and will implement custom filters, once other important tasks get finished.

    Thanks,
    Kiran

    #367934

    Kiran
    Moderator
    Post count: 7069

    Hi Moez,

    We have extended search feature to filter API results for listings.

    You can find fields schema on page http://YOURSITE.COM/wp-json/geodir/v1/ under routes -> /geodir/v1/CPT -> endpoints -> GET methods args

    For example for places you can find fields schema under routes -> /geodir/v1/places -> endpoints -> GET methods args

    So search url will be like http://YOURSITE.COM/wp-json/geodir/v1/places/?featured_only=1&pics_only=1

    Till next the release you can download development version at https://github.com/kprajapatii/geodir_api/

    Thanks,
    Kiran

Viewing 4 posts - 1 through 4 (of 4 total)

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

Open Support Ticket