skip to Main Content

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…

VIEW QUESTION

IIS Hide GET Parameter From URL – PHP

In server we are using Internet Information Services (IIS) with PHP, PHP Manager. I want to hide "dava" parameter, not only for /kovusturma-sartlari/onodeme/ page, in whole website "dava" key should hide and should be page/value. Current URL: http://localhost/kovusturma-sartlari/onodeme?dava=f2b80bf7 Expected URL:…

VIEW QUESTION
Back To Top
Search