Is there a plugin for WordPress that will change a post’s category based on how long that post has existed?
I have seen other WordPress plugins that use a library called “simple pie” to manage a wp-blog’s timed tasks, is there one that does something like this?
Don’t know of a plugin but you can use wp_schedule_single_event function.
First create a meta box that takes to values: time for removal and what category we want to set it to when removed from featured.
Now watch the save Meta Box function , if the user has enter both time for removal and category id for the new category then we set a scheduled event
with wp_schedule_single_event and hook it to “Clean_my_featured“.
So now we only need to add the action for that hook and the function for the removal itself:
I have no Idea if this works but it should so just copy all of it to a plugin file or your themes functions.php file and it should work.
if not let me know.