PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Botoscope is currently in early access

Support Forum

You need to log-in to create request (topic) to the support

Problem with filter on homepage

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I am using your HUSKY (WOOF) product filter plugin together with WooCommerce and the Divi theme.

Website URL:
https://vino-hradil.cz/

I have the following setup:

  • I use a static front page (homepage)
  • On this homepage I display products using a custom shortcode (not the default WooCommerce loop)
  • The HUSKY filter is also placed on this homepage

When I use the filter:

  • URL becomes: /?swoof=1&product_cat=...
  • Products are filtered correctly ✅
  • BUT the page is treated as a 404 (Page not found)
  • The title"Page not found" appears at the top of the page

Important notes:

  • SEO URL mode ("/swoof/") is disabled
  • Filtering works correctly on a normal page (e.g. https://vino-hradil.cz/uvod/)
  • The issue only occurs when the page is set as the front page (homepage) in WordPress

It looks like:

  • The query switches to filter/archive mode
  • But at the same time WordPress marks the page as 404

My questions:

  1. Is this a known limitation when using HUSKY on a static front page?
  2. Is there an official way to make filtering work correctly on the homepage without triggering a 404 state?
  3. Would upgrading to the PRO (paid) version solve this issue (e.g. via SEO URL, redirect, or other settings)?
  4. Is there a recommended configuration for using HUSKY on homepage with a custom product loop?

If needed, I can provide:

  • shortcode configuration
  • screenshots
  • additional technical details

Thank you very much for your help.

Petr

Hello Petr

This is not a HUSKY issue. When WordPress has a static front page and receives query string parameters like ?swoof=1&product_cat=..., it internally marks the request as a 404 even though the page template renders correctly. Your SEO plugin (Rank Math) reads that 404 state and outputs"Page Not Found" in the title tag.

You can fix this by adding the following code to your theme's functions.php file:

add_action( 'wp', function( $wp ) {
    if ( isset( $_GET['swoof'] ) AND is_404() ) {
        global $wp_query;
        $wp_query->is_404      = false;
        $wp_query->is_page     = true;
        $wp_query->is_singular = false;
        status_header( 200 );
        nocache_headers();
    }
} );

This intercepts the 404 state when a HUSKY filter is active and forces a proper 200 response, which should also fix the title tag in Rank Math.

Welcome!