• 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 3 years, 8 months ago by cdblair.
Viewing 1 replies (of 1 total)
  • 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.