Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array(
- 'post_type' => 'post',
- 'post_status' => 'inherit',
- 'orderby' => 'modified',
- 'order' => 'DESC',
- 'posts_per_page' => -1,
- );
- $today = getdate();
- $args = array(
- 'post_type' => 'post',
- 'post_status' => 'inherit',
- 'orderby' => 'modified',
- 'order' => 'DESC',
- 'posts_per_page' => -1,
- 'date_query' => array(
- array(
- 'year' => $today['year'],
- 'month' => $today['mon'],
- 'day' => $today['mday'],
- )));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement