Forums › Forums › Search & Filter Pro › Dynamic result URL
Tagged: filter, result url
- This topic has 14 replies, 2 voices, and was last updated 6 years ago by Anonymous.
-
Anonymous(Private) November 15, 2018 at 9:21 am #193698
Hi,
We are testing S&F with EDD and the Olam template.
We want to integrate filter options on the category pages.Our result url is not a static page, example:
https://www.dl-sounds.com/member/downloads/category/business-media/corporateS&F is a shortcode in the left widget.
So now we get 404 pages if we change the category or any other filter because we can not set a result url.How can we fix this?
Many thanks!Anonymous(Private) November 16, 2018 at 7:22 am #193797Yes, it is working but I have to disable Ajax in display results.
Also if I add a reset button or click on “All Download Categories” it is going to a different page. I think the download archives. It should stay on the current page and list all downloads right?
Thanks
Trevor(Private) November 16, 2018 at 10:42 am #193809Why did you have to disable Ajax? Is it because the Ajax Container might be wrong?
Depending how you set up Post Type Archive forms, the reset button might take you to a different page.
My preference is to create a ‘fake’ reset button directly below the form, that uses PHP to work out what the current page URL is and is actually a link back to the page (and thus with no query strings, and so effectively ‘reset’).
Trevor(Private) November 16, 2018 at 1:08 pm #193843I think that is because the Ajax Container is set incorrectly, but you media player software might also be an issue stopping Ajax from working.
If you look at this page structure:
https://www.screencast.com/t/GygSJTlW4fCo
The div with the bootstrap col-md-9 is the results container, but that class is used elsewhere, so it cannot be used for our Ajax Container setting. Are you able to edit the template file to add another class to that div (e.g. add
search-results
as another class) and then make the Ajax Container setting in the form be.search-results
? -
AuthorPosts