Forums › Forums › Search & Filter Pro › Separate Pages for each category
- This topic has 9 replies, 2 voices, and was last updated 10 years, 11 months ago by
Ross.
-
Anonymous(Private) April 16, 2015 at 12:35 am #15157
Hello,
I’m curious if the following is possible:
Here it is:
I have a search set up which shows the 50 U.S. States as results. When someone clicks on a state I need this to take them to that states particular page. Is this possible with this plugin? I have the PRO version.
Thanks for your time and help!
Ross Moderator(Private) April 16, 2015 at 9:23 am #15195Hey Brandon
Sure, I think you just need to use the permalink function in your results template:
https://codex.wordpress.org/Function_Reference/the_permalink
Thanks
Ross Moderator(Private) April 16, 2015 at 8:10 pm #15258There are examples at the link which you can add to your results template, inside the The Loop.
<a href="<?php the_permalink(); ?>">permalink</a>Thanks
Ross Moderator(Private) April 16, 2015 at 8:21 pm #15260Ohhh sorry I think I misunderstood,
So what you are asking is, when a user presses a search they get redirected to a specific page, instead of showing search results?
Ross Moderator(Private) April 16, 2015 at 8:42 pm #15267This is something I’ve not thought about – its not supported, but if you’re comfortable using jQuery you might be able to hack it,
If you hook in to the submit you could add some custom logic to do stuff, like redirect instead of submitting the form
$('.searchandfilter').submit(function(e){ e.preventDefault(); //do stuff });But I’ve not tried that so you are entering new territory!
Thanks
Ross Moderator(Private) April 18, 2015 at 9:46 am #15346Hey Brandon
This is not really a solution, but a point in the (possibly) right direction.
If you are not sure where to place this then I think its safe to say it would be some trouble to code the logic for the rest..
At this point you’d need to get someone to write some code for your customisations but its a little out of scope of support here.
Thanks
-
AuthorPosts