Skip to content
Advertisement

How do I stop WordPress from redirecting certain links automatically on homepage?

I want to display filtered results on the homepage of a WooCommerce shop by editing the URL.

I have a filtering option by tag, category and price range.

The URL for filtering by tag would look like this:

JavaScript

And that redirects automatically to

JavaScript

Which I don’t want because I want to add other filtering options, for example, like this:

JavaScript

If I put this filter on a different page than the /shop/, it doesn’t redirect and display the results there, on the page.

How can I disable this annoying WP redirect?

I tried this following one but didn’t work:

JavaScript

Advertisement

Answer

JavaScript

or use the following code

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement