Assign a datetime to a Wordpress post and perform actions