Rewriting Base URL on Results Generation

Forums › Forums › Search & Filter Pro › Rewriting Base URL on Results Generation

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #24291

    Hi,

    I inherited a WordPress website built by another developer and I am 95% sure they have modified Search & Filter Pro so as to reuse the same search filter on multiple places on the site. I recently updated the plugin and the filter doesn’t work like it used to.

    The way it should work is that if a user is on:

    mysite.com/page/custom-post-type

    and they submit a filter for “foo”

    it would load the results at

    mysite.com/page/custom-post-type?sft_type=foo

    The results would thus appear on the same “page” where the filter was applied. AJAX is not being used.

    However, since I updated the plugin, on Apply, I get

    mysite.com/?sft_type=foo

    The results are dropping the URL segments. Now, unfortunately, I can’t use the “Results URL” field in the settings for the Filter because this same widget is used on dozens of these kinds of “pages” (generated using custom-post-types). So the Results URL is always changing.

    Anyway, my theory is that the original developer modified S&F pro to dynamically append the correct URL segments to the base URL on Apply.

    Sorry for the long question, but this problem is killing me: any advice where I might go looking in the S&F code for this modification?

    Ross Moderator
    #24413

    Hey there

    The latest version of S&F (2.0) allows it to be used on post type archives – this might be what you are looking for it might not…?

    I can send you advance or you wait for official release (still writing the docs) in the next few days.

    Thanks

    Anonymous
    #24512

    Hi Ross,

    Thanks! I know you must be busy right now.

    I’d definitely appreciate a look at the new version ASAP — I need to get this fixed.

    Cheers,

    Adam

    Anonymous
    #24801

    Hi Ross,

    I’d still like to take you up on your offer of getting 2.0 ASAP so I can figure out if it’s going to work for us.

    Cheers,

    Adam

    Ross Moderator
    #24899

    Sent to you just now.

    Thanks

    Anonymous
    #25485

    Hi Ross,

    Been playing around with the new S&F Pro on my dev server and it’s ALMOST working. But now, instead of losing URL segments, when I submit the results, the new URL is missing the “?”.

    e.g.
    mysite.com/page/custom-post-type/?_sft_type=foo

    on submit of filter “bar”
    mysite.com/page/custom-post-type/_sft_type=foo&sft_type=bar

    Any thoughts?

    Ross Moderator
    #25505

    Thats odd, do you have a link I could look at?

Viewing 7 posts – 1 through 7 (of 7 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.