Hi I am trying to call via the plugin Crony Cronjob Manager a custom php script that will list the last 24 hours posts from a custom ' 'post_type'='reservations' 'filter and email them. Currently the email is coming thorugh blank and I have tried so many variations of coding that I am at a loss now.
Any advice?
<?php
function filter_where($where = ”) {
$where .= ” AND post_date > ‘” . date(‘Y-m-d’, strtotime(‘-1 days’)) . “‘”;
return $where;
}
add_filter(‘posts_where’, ‘filter_where’);
$args = array(
‘paged’–> $paged,
‘post_type’ => ‘reservations′
);
query_posts($args);
?>
(Sorry for the confusion over the code posting earlier)