6 Comments

  1. K T.
    November 14, 2019 @ 3:28 pm

    Reply

  2. K T.
    November 15, 2019 @ 1:01 pm

    Can you please add ‘wp_redirect’ for product post type archive to the main shop page when a URL (query vars) doesn’t match the pattern (order) defined in the fww_settings[permalinkordering]?

    A similar solution:
    https://wordpress.stackexchange.com/questions/219593/multiple-query-vars-sorting-combination-and-url-rewrite/220104#220104

    Reply

  3. K T.
    November 15, 2019 @ 11:30 pm

    Can you please take a look at this code:
    https://pastebin.com/evmjvdzs

    and this awesome plugin:
    https://github.com/gmazzap/Url_To_Query

    Maybe that will be useful.

    Reply

  4. K T.
    November 16, 2019 @ 1:40 pm

    Wouldn’t it be easier to generate an array of allowed combinations based on fww_settings[permalinkordering] and if the request doesn’t match any of post_type=product&fww_filters=allowed_combinations user will be redirected to the main shop page?

    Reply

  5. K T.
    November 22, 2019 @ 12:00 am

    ?

    Reply

  6. K T.
    November 22, 2019 @ 2:11 pm

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.