Add to your functions.php file, but dont forget to take it off after use it !!!!!
function update_all_posts() {
$args = array(
'post_type' => 'post',
'numberposts' => -1
);
$all_posts = get_posts($args);
foreach ($all_posts as $single_post){
$single_post->post_title = $single_post->post_title.'';
wp_update_post( $single_post );
}
}
add_action( 'wp_loaded', 'update_all_posts' );
PS : BE SURE TO MAKE A DATABASE BACKUP BEFORE EXECUTE !!!
Related Posts:
- Is it possible to “freeze” a WordPress blog?
- Auto Load Plugin Hooks inside Must Use Plugin
- Best practice way to delete user meta data during plugin uninstall?
- Upload specific images to specific folder
- Plugin (or Theme) containing its own Plugins?
- Remove Google Fonts Which Are (Probably) Added By Plugins
- Disable saving comment details (name, e-mail) in cookie?
- Force Plugin to English Translation
- How to parse nested shortcodes?
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Removing user contact methods works from functions.php but not from a plugin
- How to extract images of post and pages excluding header and logo image in wordpress?
- Subscribe2 Configuration
- I need to Remove this line
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Filter or action hook to insert content on admin pages before tag
- How do I change the default WordPress e-mail ID for sent e-mail?
- How to create a word press user with hashedpassword
- Display specific WooCommerce products to different types of users
- Is it possible to set up multistore in Woocommerce? [closed]
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Show HTML form before WordPress plugin deletion
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Show price with Geo IP location
- Menus, but not by theme location
- Email Bounce Address
- Getting value from dymanic text variable into Contact Form 7
- Will Gutenberg Have a Negative Impact on Page Speed?
- How to export post 2 posts WordPress plugin data [closed]
- import posts with dutch/special letters
- Installing Jplayer in WordPress
- How to create a child/addon plugin
- How to secure the release of WordPress plugins / avoid copying plugins?
- What happens if I don’t update my plugins?
- Hide certain widgets from specific user roles in admin
- Delay JavaScript files from loading
- remove_action not removing add_action from constructor
- How to display checked posts on another page over AJAX? (like comparasion style)
- Custom widget doesn’t save values from dropdown box
- Is there a way to make the main page only display a brief description of the full article?
- jQuery Click event is not fired at all
- Limit WP code scope into plugin
- Widget for specific category
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Generate Own Custom CSS Button with icon
- Unable to install plugins
- Execute a function when the entire page is displayed
- Is there any way to inject text onto pages?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- How to get Recent Post From Each Category with Thumbnail?
- Error Using Audio plugin
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Multisite Change from domain.com to sub.newdomain.com
- “Welcome to WordPress” Plugin Required Error
- Creating an admin button that when clicked shows a popup form
- How to list datas from database in a topic?
- Downloading a file
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- How use wp_insert_post and add og:custom tags?
- Remove Keywords From Webpage But Still Use for SEO
- How to change “Read More” text?
- Troubleshooting Admin_Notice
- How to use wp_editor and save its data in wp_posts table
- WordPress database problem wp_posts, primary key
- Auto trigger of popup
- My WordPress activation hook isn’t working
- How to allow URL with filename & extension in wordpress?
- Plugin will not write background color to site
- WordPress Plugin PHP Not Calling Function
- how to show the tables of my plugin in the export tab of WordPress?
- load plugin in code snippet
- Do_shortcode before send email content
- When the user entered an unauthorized url redirect to login page
- Get plugin to background of page
- how to create database to use it in wordpress website?
- WordPress Feedback popup with date saved into table
- What is a good way to test that plugin upgrades have completed properly?
- Include paths and functions for external scripts
- Postal address auto-complete on profile page
- Remove the ‘Press This’ Tool
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- which is this plugin ? [closed]
- Sync roles across several plugins
- How to write a specific url for only single page in wordpress?
- WordPress Plugin to Show a Website in Different Language? [closed]
- Strict Standards: Non-static method in sidebar generator
- Check if plugin is being disabled
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- Issue with customizer and widget page
- Submitting form to admin-post.php WordPress
- WordPress Throwing Deprecated Errors on its own Files
- How to update a lot of posts on my WP site with additional content?
- use the live preview feature in the plugin
- add to cart linking to add to cart page