Using iMacros to Update WordPress Posts Published Date

On  

Google loves fresh contents so do users. If your article’s date shows "Last Year" or older than that, users will think your content is out of date and most of the time they will leave your page immediately. Moreover, if you don’t publish content regularly and all your previous posts are too old, Google will also de-rank your site for sure.

WordPress comes with the ability to update each post’s published date manually. However, how if you have more than 500 articles? Updating each post’s date manually will consume a lot of time and effort. It hurts!

I’ve found a tool to help, iMacro, a Chrome addon. This tool helps us do a lot of manual tasks automatically, just leave the browser opens and let it does the jobs for you.

To update the published date in each of the WordPress posts, first, log into your WordPress Dashboard => All Posts. Then click on the Screen Options drop-down on the top right corner of the screen. On the Pagination option, put in the number 1. Then navigate to the last post.

After that, click on the iMacros addon icon of your Chrome toolbar, then the iMacro pannel will pop up.

Click on one of the built-in functions that provided by iMacro and paste in the following code:

VERSION BUILD=844 RECORDER=CR
URL GOTO=https://site.com/wp-admin/edit.php?post_status=publish&post_type=post&mode=list&paged=600
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*30 + 1); randomNumber;")
TAG POS=1 TYPE=A ATTR=TXT:Quick<SP>Edit
TAG POS=1 TYPE=SELECT FORM=ID:posts-filter ATTR=NAME:mm CONTENT=%03
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:posts-filter ATTR=NAME:jj CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:posts-filter ATTR=NAME:aa CONTENT=2018
TAG POS=1 TYPE=BUTTON FORM=ID:posts-filter ATTR=TXT:Update

Then click on Save & Close.

The line URL GOTO command you to put the URL of the last post of your website that I’ve noted above.

The Line SET !VAR1 will create a random number from 1 to 31.

%03 here represents the month of March. And 2018 is surely the year of 2018 ;).

Choose the loop options from the iMacros panel and put the maximum number which is 100, then click on Play Loop.

In this example, there are 600 articles so that you will have to click on the Play Loop button 6 times to get all posts updated their date.

Right, you’re done!

Drop me a comment if you can’t make it work.

About Author:

I am a WordPress lover. I make my living by using WordPress.

2 thoughts on “Using iMacros to Update WordPress Posts Published Date

Leave A Comment

Your email address will not be published. Required fields are marked *