GD v2 posts in database

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

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

Open Support Ticket
  • Author
    Posts
  • #467126

    siparker
    Buyer
    Post count: 114

    I had a thought that GD v2 was going to be more standardised in terms of the structure of the plugin and its db.

    My Developer and i had both got some memory, perhaps imagined, that the plan with V2 was to start saving the options for a place as post meta against the custom post type but looking at the database all of the place info is still saved in custom tables.

    Was there, or still is there a plan to do this or has my brain just been doing some wishful thinking?

    #467203

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    GDv2 is very much more standardized and it still does use custom tables (and always will), this is for many reasons, in short its for speed and scale-ability.

    You can update GD post info by just sending the date to the standard WP functions like wp_update_post(), we hook in and grab the info and save it on the fly.
    You can also get any post meta using the standard get_post_meta() function by just prefixing the field name with “geodir_” so something like this will get the facebook url for the post:

    $facebook_url = get_post_meta($post_id,"geodir_facebook",true);

    If i can help further just let me know.

    Thanks,

    Stiofan

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

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

Open Support Ticket