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) { …
Please add below code to “functions.php” for generating the query string: function add_query_vars($aVars) { $aVars[] = “mode”; return $aVars;}add_filter(‘query_vars’, ‘add_query_vars’);function…