I am having some trouble with scheduling posts to automatically expire (either by deleting or going to draft), every plugin I have tried does nothing and when it reaches the scheduled time nothing happens, which is making me think its probably some simple thing I keep overlooking..
I thought I might be a problem with wp-cron, but I donât seem to have any trouble setting up a publish date in the future through wordPress.
I have the latest version of WordPress running, with multi-sites set-up. All plugins were at the latest version available at the moment.
Does anyone have any ideas?? I am running out of things to try…
Thanks in Advance
Tafts
create for these posts a customfield with the name
expires
and the value is the date for disabling the post.Use the following code in the Loop of your theme.
This code wont delete or drafting the posts. But you don’t see it in the front. Perhaos this is a possible solution for your problem?
I got it working using the Post Expirator plugin, which also had the same problem, but by adding the following code to each loop right after ‘the_post();’ it checks the posts status on each page load, it is a temporary solution which seems to work for the moment.
I have tried VA Simple Expires
https://wordpress.org/plugins/va-simple-expires/
Works pretty well.
Unfortunately Post Expirator plugin did not work for me because posts imported via CSV did not expire.
Regarding VA Simple Expires – if you use CSV you should just add couple fields:
00:42:00)