function for saving custom fields needed

This topic contains 5 replies, has 2 voices, and was last updated by  Stiofan O’Connor 7 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #317472

    Dietmar Zipfel
    Buyer
    Post count: 28

    We are developing an iOS App which shall edit only certain custom fields (only 3 or 4) of users listing. For that:
    1) we need to know, how the input of the custom fields are saved in database or which function we could use for that.
    2) we need to understand how we can get the listing ids per user to create a list of listing of one user.

    Some hints for that would be really great!

    #317692

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello

    You can use geodir_save_post_meta() the same way as update_post_meta()

    You would get the users post id’s the same way as you would with any CPT.

    Stiofan

    #317739

    Dietmar Zipfel
    Buyer
    Post count: 28

    Hi Stiofan,

    thanks for fast answer. That helps! Great to hear, that all listings are posts that are assigned to users.

    So does that mean, that with

    geodir_get_post_meta

    we can see which fields are mandatory for “save” action?

    Dietmar

    #317974

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That is mainly for updating current post info, are you looking to create new posts? Have you looked at our API plugin? https://github.com/GeoDirectory/geodir_api

    Stiofan

    #318094

    Dietmar Zipfel
    Buyer
    Post count: 28

    Yes, we looked at the API plugin. But working with an alpha release seems to be some risky and needs a lot of analysing yout code. We would need some information about the REST routes.

    Where could we find informations about your REST routes?
    When could we expect some API documentation?
    When ist Beta API Plugin release expected?

    #318107

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The Api should be our main focus from next week.

    Thanks,

    Stiofan

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