Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array(
- 'year' => $today["year"],
- 'mon' => $today["mon"],
- 'day' => $x,
- 'order' => 'ASC',
- 'post_status' => 'any'); // also tried future / publish, future
- $my_query = get_posts($args);
- foreach($my_query as $post) {
- echo "Finding post ". $post->post_title. "<br />";
- $day = $post->post_date; // will be set to latest post
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement