Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Filter taxonomy term URLs for SF Pro
function hck_filter_taxonomy_archives( $url, $sfid) {
if (is_tax('topics')) {
$slug = get_queried_object()->slug;
$url = site_url() .'/'. get_post_type() .'/'. $slug;
return $url;
add_filter( 'sf_results_url', 'hck_filter_taxonomy_archives', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.