WordPress.org

Forums

Events Manager
[resolved] where in the database the custom location attributes stored? (4 posts)

  1. dynamon
    Member
    Posted 2 years ago #

    Hi,
    I am writing a script to extract some events manager data from the database for further processing. I can find the custom attribute I added for events in 'wp_em_events' table 'em_attributes' field but where are the location attributes stored? I could not find a similar field in 'wp_em_locations' table (or anywhere related to em_ tables...).

    Please could anyone point me there. Thanks.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    you can find the location attributes definition at wp_options option_name "dbem_location_placeholders_custom" but the values are stored in wp_postmeta where meta_key is the location attribute key

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    attributes are just normal custom post fields for custom post types, so you could access them as you would for WP - http://codex.wordpress.org/Function_Reference/get_post_meta

  4. dynamon
    Member
    Posted 2 years ago #

    thank you, found them!
    I'm still new to WP and so I will read the reference page on get_post_meta too. thank you very much both of you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic