reset query after all queries on front page

This commit is contained in:
Ross Trottier 2024-08-02 12:28:03 -06:00
parent 5493c59956
commit df2f48e952

View File

@ -30,6 +30,7 @@
endif;
wp_reset_postdata();
wp_reset_query();
$post_section_two_args = array(
'showposts' => 5,
@ -60,6 +61,7 @@
endwhile;
endif;
wp_reset_postdata();
wp_reset_query();
?>
</div>
</section>
@ -112,6 +114,7 @@
endif;
wp_reset_postdata();
wp_reset_query();
$post_section_two_args = array(
'showposts' => 5,
@ -142,6 +145,7 @@
endwhile;
endif;
wp_reset_postdata();
wp_reset_query();
?>
</div>
</section>
@ -233,6 +237,7 @@
endif;
wp_reset_postdata();
wp_reset_query();
$post_section_two_args = array(
'showposts' => 5,
@ -264,6 +269,7 @@
endwhile;
endif;
wp_reset_postdata();
wp_reset_query();
?>
</div>
</section>
@ -315,6 +321,7 @@
endif;
wp_reset_postdata();
wp_reset_query();
$post_section_two_args = array(
'showposts' => 5,
@ -345,6 +352,7 @@
endwhile;
endif;
wp_reset_postdata();
wp_reset_query();
?>
</div>
</section>
@ -389,6 +397,7 @@
endif;
wp_reset_postdata();
wp_reset_query();
?>
</section>
</main>