Function to Query Location Data

This topic contains 7 replies, has 4 voices, and was last updated by  execfro 9 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #20719

    execfro
    Buyer
    Post count: 80

    Is there a specific WordPress function or GeoDirectory function I can use to query a specific location’s data? I’ve tried using

    get_post(my location id)

    but that only seems to return the default WordPress data, doesn’t include any of the custom fields I’ve added through the GeoDirectory plugin

    #20745

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve flagged for Stiofan as I am not sure of the answer.

    Thx for your patience

    #20937

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sorry are u trying to get a locations data or a posts data?

    Stiofan

    #20954

    execfro
    Buyer
    Post count: 80
    This reply has been marked as private.
    #21066

    John Allsopp
    Expired Member
    Post count: 399
    #21107

    execfro
    Buyer
    Post count: 80

    I’ve tried get_post_meta(), get_post_custom(), get_post() and none of them work.

    #21110

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you should try

    function geodir_get_post_info($post_id = '')

    The function is in post_functions.php line 414

    Let us know,

    Thx

    #21120

    execfro
    Buyer
    Post count: 80

    That’s exactly what I needed. Thanks!

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

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

Open Support Ticket