I’m not sure of having understood what you are asking for. But if my guess is correct, you can achieve this goal by using $wpdb global variable.
But, in order to be more specific, I need to know how and when you want the database to update those informations.
Related Posts:
- MySQL Query to Retrieve Category from wp_posts
- SQL Query for getting all posts in their latest revised state
- Search & Remove Specific Shortcode From All Posts
- Manually delete post from database
- How to force update all posts after import
- Query All users that has post
- Can’t publish new posts
- Manually removing revision post types
- Reset/Reorder posts ID in the MySQL wp_posts table
- How do I find which articles are missing a featured image in The WordPress database?
- Tags to Post-ID mysql query. Tag Search
- wp_insert_post – duration
- Get user categories with most posts in it
- MySql query to get posts with all meta and terms
- Custom order for Mysql array
- List authors with the last post title and order by last post date
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Remove a shortcode from all WordPress posts
- Order posts alphabetically: how to set order=asc in mysql query?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- Delete post results in “Cannot delete or update a parent row: a foreign key constraint fails”
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- update image path with words starting uppercase to lowercase chars
- Queries take 120+ seconds on my large WordPress site
- Database hacked – random posts are modified
- Need to change all links in page content but not in post content
- Can’t update WordPress Page if post_content is Empty
- Restore woocommerce orders
- How to select particular month post from table and update the post status using MySQL?
- How do post IDs work in WordPress?
- Get author posts count after excluding a category
- get last post’s link with SQL query
- query for filtering published posts?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Deleting post tags removes categories
- Return records between two meta datetimes saved as strings
- WP query taxonomy optimization
- MYSQL: Create SQL query to search for string and replace
- Query to fetch custom taxonomy along with post title
- Mysql update menu_order problem
- Bulk find & replace on WordPress posts/pages (minus image paths)
- WordPress MySQL Search and replace with wildcard?
- Add postmeta to all blog posts
- ‘posts’ table should not store the absolute image path
- Dev and prod on the same database- dev version active for IOS
- SQL trigger failes with post_content
- Converting Posts to Pages
- How to change the publishing date of each posts?
- SQL query to remove first image in all posts
- Delete junk text from all the post using my sql command
- FIND and REPLACE wp_posts AND IGNORE custom post type mysql query
- How to create a post based on data in a table?
- If meta_key exists then don’t select this post?
- How to update wp_posts with just the returned comment count from wp_comments (SQL GROUP BY)
- How to manually delete post from database without causing conflicts?
- How to prevent posts from being published too close to each other?
- Change the Slug of Post Type post to baseurl/post/%postname%
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How do I programmatically add an image to a post?
- problem to delete page
- Get user’s most published categories
- How To Remove Certain category Posts From the Blog Page
- Add icon/badge next to posttitle of specific category
- Too many connections to server
- delete_post hook – deleting multiple items
- How do I exclude the current post from listing in recent posts
- Custom Post Archive Page not working
- posts_per_page option limits the number of Gallery items
- show custom post type category dropdown sorting result on same page
- singular posts using archive styling
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- How to get the form code from the edit page of a specific post?
- Send email for pending post
- Get the post id from a plugin
- change the post time on multiple posts
- Making posts permalinks consistent numbers
- How to show category based post in home page?
- Locally change the font family [closed]
- WordPress single.php different layouts projects / posts
- WordPress Post via e-mail writes a random string for the post body
- Export post another site
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Add Categories To Custom Post
- Display post on main page with thumbnail
- Display Posts by Categories
- Custom Single Post Type not referring to single-post-type.php File
- Custom template for different post types
- index.php is only displaying current month’s posts?
- prevent same wordpress post title
- Remove duplicated posts in the loop if post has more than one category
- “Current” class on a singular page menu item with custom post types?
- get next/previous post name
- Get image paths from RSS feeds
- How do I display the next 3 posts in the sidebar?
- 2 tick boxes appearing below comments
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- How to get post ID after removing that post?
- I cannot see the pagination in /wp-admin posts page
- Insert Tag in WordPress Post