Think of them as array key/value pairs (kinda). These tables are used to store additional data about particular posts, comments, or users. The meta_key
is the name by which the meta_value
is retrieved, plus you have associations with particular posts, comments, or users by means of IDs. As far as structure goes, that is about it. These are “extra info” tables. You can even add to them via the backend. *_postmeta
is where the custom fields are stored.
WordPress stores, and plugins and themes can store, a wide variety or information there. Some of those tables have critical information, like role/capability data, but you may also have relatively trivial data like someone’s Jabber handle (Is that even around anymore?), or a favorite color.
Related Posts:
- Content hooks vs User hooks
- How to get all term meta for a taxonomy – getting term_meta for taxonomy
- order by multiple meta_keys?
- How to get the total number of meta_values based on a custom post type?
- WP_POSTMETA – What do these values mean inside the data structure?
- get_*_meta doesn’t always return an array
- How can I convert postmeta from unserialized to serialized?
- Like & Dislike functionality using JavaScript
- why after saving meta value it’s saving all the values the one that i clicked?
- Is it safe to add a new field to meta_value field?
- How can I use ‘orderby’ => ‘meta_value_num’ to order by the numerical value even if the value starts with a word?
- Retrieve user_meta and copy to post_meta
- Array of user ids to list of user names
- get Insert id for meta field
- help to decipher wp metadata
- Display current ranking of post as a number in post title
- I can not display meta value in extras.php and template-tags.php
- Check For get_post_meta on Author Archive Page
- Count Post and Page Views based on meta_value Using Shortcode in Dashboard Widget
- Negative meta_query if storing multiple post_meta values with shared meta_key
- if get_post_meta function returns empty – Do Not Display HTML
- How to get the total of two meta values from different meta keys?
- How to save a meta_value as a numeric value after I retrieve it via update_post_meta?
- How to update/add child posts meta whenever the parent post meta is updated?
- show user based on user_meta
- Multiple meta key and value search in the query
- How to sort by meta value num, but ignore zero value?
- How can I get the post ID from a WP_Query loop?
- How to edit a post meta data in a Gutenberg Block?
- Can I count the number of users matching a value in a multiple value key?
- How to update/delete array in post meta value?
- How do I retrieve multi-dimensional arrays from the wp_postmeta table, & display on a website?
- Why am I getting an infinite loop with have_posts?
- adding a URL to a post meta
- How to break meta values into different items and avoid duplicates?
- Adding meta data to an attachment post
- Problem With Order Item Meta In Woocommerce
- How to store Gutenberg ColourPicker RGBA as metadata
- Is it possible to update a post meta field through REST API if the format of it when registered is nested?
- How trigger to save post when updating post meta
- Query 2 meta key values and a category
- trying to do if post meta !=0
- Trying to get file name
- how to build (custom) stats for post views, per month
- get_post_meta pagination
- Removing Post Meta from Category Pages?
- Hey, I want the second options. get_post_meta()
- Update post meta in woocommerce order frontend
- echo image caption
- populate post meta in gravity forms [closed]
- How to display post view count by date, week and month?
- How can I filter posts when the meta_value is a serialize object?
- Get User Post if Private
- How to receive all the meta information of a post ?
- Unknown characters added to meta data values
- Compare old meta with new post meta
- get_post_meta($post->ID) returns empty string when in preview mode of custom post type
- need to add add user names to the post for later retrieval or removal
- How can I change the tag contents of individual WordPress posts?
- get_post_meta producing white screen of death
- get_permalink vs the_permalink
- Updating my Post when expiry date is past
- How to remove Date from Meta Description on SERP?
- How to display sql query fired by posts_where
- Unfiltered html with update_post_meta
- get meta value from page query
- Retrieving post meta array (attachment)
- query post by author gender
- Why is variable that get_post_meta stored in empty?
- Combining two meta_values within one row with query
- wpdb->get_var – count author posts, meta value
- Displaying the ‘time ago’ for recent activity within a post/custom post type?
- add post meta front end edit
- How to query and update one colum in postmeta table?
- How to remove date from showing in meta description
- Search post overlapping dates – meta_query with meta_key
- How to save HTML data into SQL post_content column
- How to change text color depending on the number value (Using javascript)
- update post meta value with other post meta value
- What format is this and how to get value “lal” and “pila” from it
- Frontend query and does not need to log in [closed]
- Get data from custom table and update relative post_meta based on meta_key
- Get or set values in post meta
- How to get all multi-select user meta values and add them to an array?
- Programatically delete several attributes in _product_attributes in post meta
- Adding user meta to post meta wp_insert_post() not working
- Get post meta after insert post
- Data not displaying in text field
- How to display checkbox meta array values one by one?
- WP-API + JS Backbone client – how to update post meta
- Proper Way to Sanitize Meta Input
- update_post_meta returning false when called during init
- Sorting Posts with meta value not working
- Getting meta content from get_next_post & get_previous_post
- Get value from post meta array, and add it as a category
- Sort users by custom user meta value
- Cache metadata for set of posts
- How to display Author Profile based on Custom field value
- Problem with get_post_meta
- get Custom field label (select/dropdown) on front end