Category specific listings…

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

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

Open Support Ticket
  • Author
    Posts
  • #528572

    Rodney Chatman
    Expired Member
    Post count: 89

    Hello,

    Is there a way to show ONLY listings in a particular category via the API? I’m currently trying to use

    https://site-url/wp-json/geodir/v2/business?category=156

    but it shows all listings.

    #528610

    Alex Rollin
    Moderator
    Post count: 27815

    The developers will get back to you with information about that.

    #528656

    Kiran
    Moderator
    Post count: 7069

    Hello Rodney,

    To show listings from single category:

    http://MYSITE.COM/wp-json/geodir/v2/places?gd_placecategory=85

    To show listings from multiple categories:

    http://MYSITE.COM/wp-json/geodir/v2/places?gd_placecategory=85,33,25

    Just add category id to post type taxonomy.
    Example:
    For gd_place it will be gd_placecategory=xx
    For gd_event it will be gd_eventcategory=xx
    For gd_business it will be gd_businesscategory=xx

    Kiran

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount