Forums › Forums › Search & Filter Pro › Rewriting Base URL on Results Generation
- This topic has 6 replies, 2 voices, and was last updated 10 years, 5 months ago by
Ross.
-
Anonymous(Private) September 3, 2015 at 8:07 pm #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(Private) September 7, 2015 at 8:28 am #24413Hey 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(Private) September 22, 2015 at 10:07 pm #25485Hi 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=fooon submit of filter “bar”
mysite.com/page/custom-post-type/_sft_type=foo&sft_type=barAny thoughts?
Ross Moderator(Private) September 23, 2015 at 6:46 am #25505Thats odd, do you have a link I could look at?
-
AuthorPosts