From df2f48e952e31831262b7d03bb3111e9b11872a7 Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Fri, 2 Aug 2024 12:28:03 -0600 Subject: [PATCH] reset query after all queries on front page --- front-page.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/front-page.php b/front-page.php index 7b5d967..ca987c3 100644 --- a/front-page.php +++ b/front-page.php @@ -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(); ?> @@ -112,6 +114,7 @@ endif; wp_reset_postdata(); + wp_reset_query(); $post_section_two_args = array( 'showposts' => 5, @@ -141,7 +144,8 @@ @@ -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(); ?> @@ -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(); ?> @@ -389,6 +397,7 @@ endif; wp_reset_postdata(); + wp_reset_query(); ?>