function custom_term_link_url($content) { $current_path = ‘live-topics’; $new_path = ‘live/topic’; $content = str_replace($current_path, $new_path, $content); return $content;}add_filter(‘term_link’, ‘custom_term_link_url’); function add_query_vars_for_live_topics($aVars) { …