How metadata are stored in the db?

Forums SNAP – WordPress Plugin Forums How metadata are stored in the db?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #14024

    I try to read metadata written by SNAP (directly from “postmeta” table of wordpress database) to include the date of last publish to different social site (several blogspot, several google+, ecc ecc) in my reports (that show statistics about every plugin i use).
    Sometimes, i just need to unserialize (with PHP function unserialize() ) twice to get a valid array in wich i find the ‘pDate’ attribute (what i need). Sometimes instead, strings seem to be invalid serialized data… but the plugin can still read the correct date (i can see it in my /wp-admin control panel).
    It’s possible to know exactly how metadata are stored in “postmeta” table of wordpress database?


    I have the same question too! How can i read directly from postmeta table? i mean, metadata whit meta_key ‘snap-BG’,’snap-GP’, ecc ecc
    thanks in advance


    Just use WordPress functions.

    $postMeta = maybe_unserialize(get_post_meta($post_id, ‘snapFB’, true));

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.