Standard Query
// WP_Query arguments
$args = array(
'post_type' => array( 'post' ),
'post_status' => array( 'publish' ),
'nopaging' => false,
'paged' => '1',
'posts_per_page' => '4',
'ignore_sticky_posts' => false,
'order' => 'DESC',
'orderby' => 'date',
);
// The Query
$dailyclips = new WP_Query( $args );
// The Loop
if ( $dailyclips->have_posts() ) {
while ( $dailyclips->have_posts() ) {
$dailyclips->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();