hi trying call via plugin crony cronjob manager custom php script list last 24 hours posts custom ' 'post_type'='reservations' 'filter , email them. email coming thorugh blank , have tried many variations of coding @ loss now.
any advice?
<?php function filter_where($where = ”) { $where .= ” , 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 confusion on code posting earlier)
Comments
Post a Comment