Why is the loop displayed (duplicated) outside the div.page?

do you know why the loop result is displayed (duplicated) outside the div.page?

This is the code:

// The Query
$the_query = new WP_Query($args);
// The Loop
if ($the_query->have_posts()) {
echo ‘<ul>’;
while ($the_query->have_posts()) {
$the_query->the_post();
echo ‘<li>’. get_the_title() . </li>’;
}
echo ‘</ul>’;
}

Thanks

Read more here:: Why is the loop displayed (duplicated) outside the div.page?

Leave a Reply

Your email address will not be published. Required fields are marked *