Home › Forums › Support › Issue with Query Loop block on the front-end This topic has 21 replies, 4 voices, and was last updated 3 years, 6 months ago by Ying. Viewing 7 posts - 16 through 22 (of 22 total) ← 1 2 Author Posts January 11, 2023 at 12:03 pm #2491883 YingStaff Customer Support Can I see your site? January 11, 2023 at 1:10 pm #2491951 Yerai Of course, I have left the access in the private area January 11, 2023 at 1:53 pm #2491992 YingStaff Customer Support Can you try this PHP snippet instead? add_filter('request', function( array $query_vars ) { if ( is_admin() ) { return $query_vars; } if (! is_single()){ if ( isset( $query_vars['category_name'] ) ) { $pagename = $query_vars['category_name']; $query_vars == array( 'pagename' => "$pagename" ); } return $query_vars; } return $query_vars; } ); January 11, 2023 at 2:32 pm #2492045 Yerai Hi Ying, That snippet works. Posts right now look how they should. But now category pages aren’t replaced by a static page 🙁 Is there a way to fix that issue? January 11, 2023 at 3:55 pm #2492099 YingStaff Customer Support Can you disable the Strip Category Base option in Rank math? January 11, 2023 at 5:03 pm #2492141 Yerai I seems it now works well, thank you Ying! January 12, 2023 at 11:43 am #2493320 YingStaff Customer Support Glad to hear that 🙂 Author Posts Viewing 7 posts - 16 through 22 (of 22 total) ← 1 2 You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In