如何在4列ms-4之后自动插入新行查询?
<section class="container" id="szolgaltatasok">
<div class="row" id="szolgaltatasok">
<?php
$custom_query = new WP_Query(\'cat=-1\'); // Kizárt kategória
while($custom_query->have_posts()) : $custom_query->the_post(); ?>
<div class="col-md-4 portfolio-item" <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="szolgaltas-bg">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail( \'la-dolce-vallata-blog\' );} ?>
<div class="szolgaltas-padding">
<h3 id="h3-padding"><a id="szolgaltatasok" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php
echo "<p>";
$content = get_the_content();
echo substr(strip_tags($content), 0, 123);
echo "...</p>";
?>
</div>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); // reset the query
?>
</div>
</section>