I manage to work my problem.
For those who seek the same answer, just run this query
INSERT INTO wp_postmeta (post_id, meta_key, meta_value)
SELECT wp_posts.ID, 'video_desc', 'Description here'
FROM wp_posts
WHERE wp_posts.post_status="publish";
Related Posts:
- How to rename a custom field?
- Custom Fields Bulk Edit
- searching by keywords in post’s metas or pagination links problem
- query specific posts according their custom fields, using sql SELECT
- SQL Query to copy value of a meta_key into another meta_key
- How to correctly call custom field dates into a posts_where filter using SQL statements
- Add custom fields to search
- SELECT max(meta_value) FROM wp_postmeta WHERE meta_key=’price’… stops working when value is over 999
- How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
- Meta Query with AND & OR?
- How to prevent custom fields from being cleared during a bulk edit?
- Custom bulk action for media gallery items
- Bulk move (or copy) from a custom field to the post content?
- Up/Down voting system for WordPress
- cron job to auto delete posts of a specific post type older than x days
- How to edit multiple post with Custom fields
- Plugin similar to Taxonomy Drill-Down for custom fields?
- How do I query for a post by custom field?
- Count how many posts have a custom field set
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- sort search results by custom fields using dropdown
- Get all posts that do not have a specific custom field without using a subquery
- How can I sort homepage by a meta value?
- Loop to display random posts only if a custom field matches category
- Conditional custom field query
- Order query by meta_value with multiple custom fields
- Display only past events on that page using Visual Composer Grid Bulider
- Create Pop-Up Box with Custom Field Content Inside the Loop
- query usermeta from custom field
- Is there any way to get all meta and standard columns for any WordPress object after searching based on meta key and value
- Order RSS content by an advanced custom field value
- UPDATE on SELECT results. A SQL query to swap Author with Meta Box value
- Alter main archive, to show posts with meta as last
- Meta Query And/Or
- Trying to reorder posts by custom field
- Limits, not all post are showen when querying for posts by view count
- Why orderbyb meta_value_num won’t affect the generated SQL Query order?
- Get post ids sorted by meta_key
- querying a custom field
- pre_get_posts : only get posts by wp_usermeta value
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to query an out put value?
- List custom queried terms in the edit-tags.php?taxonomy page
- Modify date query by URL parameter using pre_get_posts and $_GET
- Get emails from users by custom field SQL
- Loop through incrementing custom fields
- Custom search SQL Query to add custom field in result
- WordPress SQL query to tag all posts containing a specific word on title
- The best way to collision check in WP
- SQL: Select wordpress posts with given text string and add a custom field to them?
- How to exclude custom fields from search queries?
- WP_Query () using taxonomy, custom post types
- Show array of meta_value in Edit Post Coloum
- How to query for posts with either one or another custom field
- Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?
- Custom Query: query by post custom meta data
- Get array of posts based on custom field values
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- How to query posts by month based on date custom field?
- Custom Field Date Problem
- Meta field bulk editing no longer working in WP 6.0 [closed]
- Compare ACF date field (if exists) and post date and order DESC
- Change word in woocommerce product category custom field
- Problem with revisions only returning four results
- Search & column order by meta value in admin
- Dynamically populate query source in Elementor post widget
- SQL query to change the value of a Custom Field
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- Create custom query for search?
- Convert all dates in field to Unix time, except those already in Unix time
- Meta_query not filtering posts
- Get multiple posts with some custom fields efficient
- How to add a prefix to existing custom fields over MYSQL query?
- Complex WP_Query Using Post Date And Post Meta
- Alter SQL query to return posts with unique custom field value, no duplicate values
- How to check if custom field exists in this widget query
- Only show content slideshow if “slideshow” custom field exists
- Update field name without losing the value
- How to display search query as formatted text?
- Add meta data to the menu
- How can I show custom fields in the loop only to specific user roles?
- Checkboxes in registration form
- Calling the “wp-link-wrap” pop-up modal
- How do I add an image upload, custom field to a WooCommerce product?
- displaying and sorting comments by a custom field (using PODS plugin) [closed]
- how to display a widget only on a page where the custom field is defined?
- Custom tables or custom fields?
- display custom field from inner blog in the main homepage of wordpress multisite
- How to query categories with Advanced Custom Fields?
- WP Query – Is this correct?
- Access ACF fields within custom preview function?
- Can I access Posts of custom-fields via URL?
- plugin-list-category-post custom fields
- How to show ACF fields in Gridbuilder custom block
- use mysql to replace one custom field value with another custom field value
- Change blog post title on main blog page
- Spit out list of distinct instances of custom field?
- Filter and display a specific custom field value [closed]
- Media Custom Fields – get a value with PHP
- jaredatch metaboxes on video post formats