Title: BUG: Rename tag base causes Search and Filter 404
Last modified: January 16, 2021

---

# BUG: Rename tag base causes Search and Filter 404

 *  [cdblair](https://wordpress.org/support/users/cdblair/)
 * (@cdblair)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/bug-rename/)
 * Please fetch wordpress’s renamed tag base and remove hardcoding in the Search
   and Filter plugin.
 * I use wordpress permalink rename feature (Dashboard->settings->permalinks->optional-
   >tag base) to rename mywebsite.ca/tag/animals to mywebsite.ca/topic/animals
 * However this breaks my Search and Filter plugin, so I currently fix this by updating
   the plugin file as below. Can this be written into the plugin please, by fetching
   the tag base? I believe it would be by using get_option(‘tag_base’, ‘Tags’) instead
   of “tag/”
 * public_html/wp-content/plugins/search-filter/search-filter.php
 *     ```
       $tags = implode($operator,$tagarr);
   
       if(get_option('permalink_structure')&&($taxcount==0))
         {
          $tag_path = "tag/".$tags."/";
          $this->urlparams .= $tag_path;
         }
       ```
   
 * fixed:
 *     ```
       $tags = implode($operator,$tagarr);
   
       if(get_option('permalink_structure')&&($taxcount==0))
         {
          $tag_path = "topic/".$tags."/";
          $this->urlparams .= $tag_path;
         }
       ```
   
 * Thanks kindly!
    -  This topic was modified 5 years, 3 months ago by [cdblair](https://wordpress.org/support/users/cdblair/).

Viewing 1 replies (of 1 total)

 *  [Tommaso Baldovino](https://wordpress.org/support/users/tomstardust/)
 * (@tomstardust)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/bug-rename/#post-14007954)
 * Just debugged the same issue on my website. I’m supporting the same request: 
   is there an upcoming update for this bug?
    Custom permalinks are a common situation.

Viewing 1 replies (of 1 total)

The topic ‘BUG: Rename tag base causes Search and Filter 404’ is closed to new replies.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tommaso Baldovino](https://wordpress.org/support/users/tomstardust/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/bug-rename/#post-14007954)
 * Status: not resolved