Advertisement
Guest User

Untitled

a guest
Mar 28th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. $args = array(
  2.            'year' => $today["year"],
  3.            'mon'  => $today["mon"],
  4.            'day'  => $x,
  5.            'order' => 'ASC',
  6.            'post_status' => 'any');  // also tried future / publish, future
  7.  
  8.     $my_query = get_posts($args);  
  9.  
  10.  
  11.    foreach($my_query as $post) {
  12.            echo "Finding post ". $post->post_title. "<br />";
  13.            $day = $post->post_date; // will be set to latest post
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement