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