Quantcast
Channel: Question and Answer » post-meta
Viewing all articles
Browse latest Browse all 54

Find page metadata in database

$
0
0

I want to insert metadata to custom fields (from “advanced custom fields” plugin) manually (with wp_update_post_meta).

I need to know how the meta value strings look like so I can insert this kind of data. But where is the meta data for a specific page stored?

The fields in the database are in the “postmeta” table, but that’s only where they are defined (I think). And the metavalues specify the content to be inserted in the fields. For example, the meta value for one of the meta id’s looks like this:

a:8:{s:3:"key";s:19:"field_55bf22f448b19";s:5:"label";s:8:"Artiklar";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:8;}

So I need to see custom fields meta data for a specific page in the database to see how it looks like, then I would know how to add custom field data to the advanced custom fields from PHP.


Viewing all articles
Browse latest Browse all 54

Trending Articles