WP Query Loop Generator

Generate your own WordPress Loop (WP Query) in a few simple clicks with the "WP Skills" WP Query Generator for WordPress sites.
Order
wp-skills.com

// Custom WP query query
// Query Arguments
$args_query = array(
    
    'order' => 'DESC',
    'orderby' => 'date',
);

// The Query
$query = new WP_Query( $args_query );

// The Loop
if ( $query->have_posts() ) {
    while ( $query->have_posts() ) {
        $query->the_post();
        // Your custom code
    }
} else {
    // no posts found
}

/* Restore original Post Data */
wp_reset_postdata();