23.1 C
Villupuram
Sunday, January 17, 2021

How to Bulk Update All Posts in WordPress? | A Plugin Which Helps You to Bulk Update All Your WordPress Posts !

- Advertisement -

Hi Guys, Today I am Going to tell you to How to Bulk Update All Posts in WordPress? | A Plugin Which Helps You to Bulk Update All Your WordPress Posts !

Check Out This: How to Fix An Automated WordPress Update has failed to Complete – Please attempt the update again now Error?

Steps For How to Bulk Update All Posts in WordPress? | A Plugin Which Helps You to Bulk Update All Your WordPress Posts ! 

- Advertisement -

Method 1 : Using Plugins

Plugin 1 : Bulk Edit Publish Date 

Step 1: First of all Goto Plugins in your WordPress Panel and Click Add New Plugin.

Step 2: Now Search for the Plugin Bulk Edit Publish Date and Click Install and Activate it.

Step 3: Now Go to your Posts and Select all the Posts and Click the Set Publish Date Option and Again Click Apply.

- Advertisement -

How to Bulk Update All Posts in WordPress?

If you’re unable to get the Plugins or Plugin gets Deleted in WordPress , Don’t Worry Guys I’ll give you my backup to you !

You can get those free plugins from below link.

Download Plugins Here

Also Read: How to Fix “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.”?

- Advertisement -

Plugin 2 : Bulk Post Update Date

Step 1: First of all Goto Plugins in your WordPress Panel and Click Add New Plugin.

Step 2: Now Search for the Plugin Bulk Post Update Date and Click Install and Activate it.

Step 3: Now Go to Bulk Post Update Date Plugin and Select the Hours and Select the Categories and Click Update Post Dates.

How to Bulk Update All Posts in WordPress?

*Important Note :  Always Go With Plugin Method Rather than Trying a Code Method.

*Very Important NoteIt is Necessary to Take a Backup before Start Editing while Using Code Methods.

Method 2 : Using Following Codes

Code 1

Step 1: First of all Sign in into your Website Hosting Account.

Step 2: Now Access your C-panel And Open File Manager either via Web or FTP it’s your wish.

Step 3: Now Go to Public_HTML Folder and Open the Functions.php File.

Step 4: Now Paste the Below Given Code and Save 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' );

 

*Important Note :  Take a Backup before Editing the Funtions.php File

Code 2

Step 1: First of all Sign in into your Website Hosting Account.

Step 2: Now Access your C-panel And Open File Manager either via Web or FTP it’s your wish.

Step 3: Now Copy Paste the Below Given Code in Notepad ++ and save it as PHP File.

<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 
 
if ( ! class_exists( 'MyPlugin_BulkUpdatePosts' ) ) : 
 
class MyPlugin_BulkUpdatePosts {          
 
public function __construct(){
      register_activation_hook( __FILE__, array( $this, 'do_post_bulk_update' ) );//Run this code only on activation
}          
 
//Put your code in this function
public function do_post_bulk_update(){
    $posts_to_update = get_posts('cat=x&showposts=1000');//Retrieve the posts you are targeting
    foreach ( $posts_to_update as $update_this_post ):
           $update_this_post->post_title = 'Post Prefix: '.$update_this_post->post_title;//The post field you are updating.
           wp_update_post( $update_this_post );
    endforeach;
 }
 
}
endif;

Step 4: Now Put it in a Folder and Name it as as Bulk Update All Post.

Step 5: Now Put that Folder in Zip File and Upload it as a Plugin in your Website.

And Do Bulk Update Easily !

*Important Note :  Take a Backup before Editing the Funtions.php File

@@@ Leave Comments @@@

## Stay Safe Guys And Live Happily ##

Vasantharaj R Nhttps://letsmakeiteasy.tech/
Basically an Intrumentation Engineer But Very much Interested in Blogging . I'm a Passionate Blogger and an Intermediate in Search Engine Optimization Process . I'll always tries to Fix those Common Issues Which was Faced By Most of the users in the World.

Latest news

Top 5 Adsense Alternatives for New Bloggers 2020 | Best Ad Network for New Bloggers 2020

Hi Guys, Today I am Going to tell you about Top 5 Adsense Alternatives for New Bloggers 2020 | Best Ad Network for New...

How to Unblock Blocked Sites Without Vpn 2020? | How to Open Blocked Sites Without Using Vpn?

Hi Guys, Today I am Going to tell you to How to Unblock Blocked Sites Without Vpn 2020? | How to Open Blocked Sites...

How to Fix “Your Connection to this Site is not Fully Secure” in WordPress and Chrome 2020?

Hi Guys, Today I am Going to tell you How to Fix "Your Connection to this Site is not Fully Secured" in Wordpress and...

How to Highly Compress Files using KGB Archiver? | How to Use KGB Archiver to Compress? | KGB Archiver Best Compression 2020

Hi Guys, Today I am Going to tell you How to Highly Compress Files using KGB Archiver? | How to Use KGB Archiver to...

Related news

Best AMD Threadripper Processors That You Need to Buy (2021) | Top Performing AMD Ryzen Threadripper Processors List (2021)

Hi Guys, Today I am Going to tell you about Best AMD Workstation Processors Above ₹200000 | Top 5 Performing Workstation Processors that you...

How to Fix The Recycle Bin on any Local Disk (C:D:E:F:G:H:) is corrupted. Do you want to empty the...

Hi Guys, Today I am Going to Show You How to Fix The Recycle Bin on any Local Disk (C:D:E:F:G:H:) is corrupted. Do you...

Best AMD Processors with Integrated Graphics | Best AMD Ryzen CPU with Integrated Graphics (Radeon™ Vega Graphics)

Hi Guys, Today I am Going to tell you about Best AMD Processors with Integrated Graphics | Best AMD Ryzen CPU with Integrated Graphics...

How to View/Access Deleted and Blocked Websites & Web Pages? | Internet Archive – Wayback Time Machine !

Hi Guys, Today I am Going to Show You How to View/Access Deleted and Blocked Websites & Web Pages | Internet Archive - Wayback...

LEAVE A REPLY

Please enter your comment!
Please enter your name here