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)
- Count how many posts in category
- Adding Post Counts to Menu (Nav) Programmatically?
- Show chart in post using data passed as custom field
- Show One Category on Post
- Creating new page with pre-defined parent page
- Get all Youtube video’s from posts and embed them on a different page
- Send email to user that his post has been rejected
- How can I highlight syntax like it appears on stackoverflow?
- Add Category name to Post Title (h1)
- Blogroll – Different layout for first post
- How to delete old posts’ edits to save space?
- When trashing a post, also trash related comments
- Image Insert into posts and pages not working after 3.2.1 update
- allow new users to post an article before they sign up [closed]
- Make Post Editor Select Number of Columns To 1 By Default
- Adding the_date inside tags around the_content
- Mixing Tweets with Posts
- Problem with permalink routing?
- Making a custom Pagination for multi page blog post
- WordPress is replacing double minus signs in Post Title, how to disable it?
- using is_paged for hiding image on posts
- How to display the post categories for each post inside the loop with custom format?
- Allow / show post comments in category pages
- Filter post by users creation date
- Function is printing twice – any suggestions?
- Recent Post Issue
- how to create a category with wp_insert_post and post_category
- Extracting the permalink from a post instance
- How to add a block to a category page?
- 2 Domains, Same Content, Different Titles?
- Adding wordpress posts using phpmyadmin
- How can I get post text from all posts on a WordPress news site?
- Changing the Category for all posts of an Author
- Posting a comment redirects admin/users to blank page
- Is it possible to have dynamic post id # in add_menu_page()?
- Hiding menu on mobile only when viewing posts?
- Posts don’t appear on Template Page
- Latest Posts not in the right order
- Howto put advertising as post number 1,2,3 etc
- limit posts per page
- WordPress Admin Tables in Post View
- Print out one of 2 post category [closed]
- How to get if category has posts?
- How can I add a custom caclulation form in post?
- Restore posts, but only posts that exist in my database backup