The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › WordPress Custom Loop › Re: WordPress Custom Loop
try this
$wp_query = null; $wp_query = new WP_Query(); $wp_query->query(‘cat=4’); ?> div class=”row”> have_posts() ) : $wp_query->the_post(); ?>
“>
$i++; endwhile; // end of the loop. ?>