Set transient with get posts error
If what you want is for this function to run once a day and loop through all matching posts (removing img tags), I think this should do the trick: <?php function remove_images_form_past_posts() { if ( get_transient(‘images_removed_from_past’) ) return; $args = array( ‘post_type’ => ‘post’, ‘year’ => 2013, ‘monthnum’ => 1, ‘day’ =>28, ‘post_status’ =>’publish’, ‘category’ … Read more