- This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Dynamic URL
Hello! I am trying to return a dynamic url so that I can search per author example.
URL on Search setup.
http://www.example.com/test/
Dynamic URL where I have the S&F filter
http://www.example.com/test/author1
http://www.example.com/test/author2
http://www.example.com/test/author3
I believe it should look something like this
function filter_function_name( $url, $sfid) {
// Process URL here
global $wp;
echo home_url( $wp->request )
return $url;
}
add_filter( ‘sf_results_url’, ‘filter_function_name’, 10, 2 );
I cannot make this work and how would I limit this per certain type of filter. Could you assist?