Why isn’t the rewrite rule working in the child theme WordPress?
I am using this rewrite rule function but it does not work in child theme. It seems not going inside callback function at all. function add_rewrite_rules($aRules) { $term_obj = get_queried_object(); //print_r($term_obj); if(isset($term_obj->term_id) && $term_obj->term_id!=""){ $aNewRules = array('casselberry-antique-white/([^/]+)/?$' => 'templates/product-list-template.php?manufacturer_id=$matches[1]'); $aRules…