issue with using geodir_get_post_info() in v2

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

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

Open Support Ticket
  • Author
    Posts
  • #463790

    Emlyn Jones
    Full Member
    Post count: 32

    Hi Guys,

    I am having issues with using geodir_get_post_info($post_id); in my code.

    When I use it in custom code of mine to generate a report based on all the locations, I get the wrong inforamtion, even though the entry itself shows the right information.

    Mainly – the post title comes through as “Auto Draft”, and the post status as auto-draft, and none of the inforamtion in custom fields can be seen.

    My code generates a report CPT post which stores the output of geodir_get_post_info($post_id) as JSON.

    This JSON is then converted into a CSV file for download.

    I have checked the output of the function direct in code and it’s showing incorrect information.

    It may or may not be related, but I am unable to save the location of my new places now also.

    Look forward to hearing from you,

    Emlyn

    #463804

    Guust
    Moderator
    Post count: 29970

    I forwarded your query to a developer.
    Thanks

    #463840

    Kiran
    Moderator
    Post count: 7069

    Hello Emlyn,

    Have you checked after updating GeoDirectory plugins? We just have released plugins for GeoDirectory v2.

    If you have not updated then please update first and let us know how it goes.
    If you have already updated plugins then provide us site link & admin credentials in private reply. We will take a look. Provide us FTP credentials as well and let us know where is the custom code to generate a report CPT post.

    Thanks,
    Kiran

    #463897

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #463906

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #463910

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #463911

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #463918

    Emlyn Jones
    Full Member
    Post count: 32
    This reply has been marked as private.
    #463965

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 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