API / Create a new place category with API

This topic contains 5 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 5 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #514532

    cibleweb
    Expired Member
    Post count: 2

    Hi,

    Is it possible via the API to create a new category to associate it with a place ?
    This is possible by import / export so we allow ourselves to ask you the question.

    Best Regards

    #514577

    Alex Rollin
    Moderator
    Post count: 27815

    If WP supports it, then it would be done with the built in WP REST API. Something like this (untested)

    https://stackoverflow.com/questions/47015522/assign-custom-taxonomy-to-post-with-rest-api

    #514619

    cibleweb
    Expired Member
    Post count: 2

    thanks for your rapidity, I will look in detail
    Is it possible to add features to each place?
    example:
    accepted animals
    free parking

    Regards

    #514641

    Alex Rollin
    Moderator
    Post count: 27815

    Hello again,

    it sounds like you might want to check out our Getting Start page:
    https://wpgeodirectory.com/docs-v2/geodirectory/getting-started/

    With GeoDirectory, the sky is the limit for what you can do.

    You can add custom fields, edit templates for display of listings, use popular builders, and so much more!

    #514698

    cibleweb
    Expired Member
    Post count: 2

    Hello again
    yes we have seen your documentation
    I ask you if it is possible to do this via the API without modifying the module

    #514769

    Alex Rollin
    Moderator
    Post count: 27815

    Yes. You would first define the custom field, but, once defined, yes you can add values through the API.

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