Icon Thumbnail for Category

This topic contains 4 replies, has 3 voices, and was last updated by  Roberto Gutierrez 6 years, 10 months ago.

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

Open Support Ticket

Tagged: , , ,

  • Author
    Posts
  • #385089

    Roberto Gutierrez
    Free User
    Post count: 2

    Hi, I can get all the categories using this kind off call:
    https://wpgeo.directory/rest-api/wp-json/geodir/v1/gd_placecategory
    When someone submit a new category, can upload two pictures, icon and other image. If I fill this data, and then I call the rest, I get all the data, but I can´t access to the url of this media files.
    There is a way (even with code) to get this files in the rest response?
    For example in the original wordpress API, you can add _embed in the call to retrieve the featured image.
    http://localhost/wordpress_3/wp-json/wp/v2/posts?_embed
    Thanks in advance.

    #385158

    Paolo
    Site Admin
    Post count: 31206

    Hi Roberto,

    I flagged your request for the developer responsible for the API. He’ll let you know asap.

    Thanks for your patience,

    #385277

    Roberto Gutierrez
    Free User
    Post count: 2

    Hi Paolo, thanks.

    #385279

    Kiran
    Moderator
    Post count: 7069

    Hi Roberto,

    We have now added “icon” & “image” in category response to get category icon & category default image.

    It will be available in next release of GeoDirectory API plugin.

    Kiran

    #385283

    Roberto Gutierrez
    Free User
    Post count: 2

    Ok thanks Kiran! good news!
    I will be waiting!
    Best!

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

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

Open Support Ticket