I was using wordpress postie plugin to create post via email and it was working perfectly fine from last few years. last week i observed that the post are not getting created by the postie plugin automaticlly based on the cron settings but at the same time the manual trigger was working fine.

How to Automate Tasks with WordPress Cron Job

There was some issue with wordpress cron jobs and in my case it was working earlier so there was no configuration changes but in case you are facing cron issue on new site the you must check wp-config file and see if DISABLE_WP_CRON is set to true. if the DISABLE_WP_CRON is set to true the is will disable cron so make sure you set it to false or remove the config.

if in case DISABLE_WP_CRON doesnt solve the problem then you can still trigger the cron jobs from external site/server. there are few free cron sites available like cron-job.org, easycron.com which allow you to trigger your website wp-cron remotly. you can also use windows schedule task from your windows laptop / server to trigger the cron in case you dont want to rely on third party websites.

WordPress cron trigger url –

you can use http://<mysite>/wp-cron.php to trigger the cron job and this is recommened way you can use for cron external trigger. you can also automate trigger using powershell or python script using below commands ( if you using Linux/Unix vm/server/laptop then use below command to schedule the trigger every 10 min (change wordpress site name before using command):



Invoke-WebRequest -Uri "https://powershelltalk.com/wp-cron.php"

#OR

curl https://powershelltalk.com/wp-cron.php

if you using Linux/Unix vm/server/laptop then use below command to schedule the trigger every 10 min (change wordpress site name before using command):

*/10 * * * * /usr/bin/wget -O /dev/null http://powershelltalk.com/wp-cron.php >/dev/null 2>&1

Postie plugin specific cron trigger url –

if you just want to trigger postie cron then you can try below url (change wordpress site name before using command):

Invoke-WebRequest -Uri "https://powershelltalk.com/?postie=get-mail"

#OR

curl https://powershelltalk.com/?postie=get-mail

(Visited 2 times, 1 visits today)

By Arun Sabale

Arun is a Solution Architect on enterprise client management with more than 14 years of experience in IT. Arun Sabale is Blogger and tech enthusiast. His main focus is on Azure cloud infra, Cloud automation with powershell, python, ARM terraform and all cloud infra services like compute, storage, network, automation, function api etc... LinkedIN - https://www.linkedin.com/in/arun-sabale/