I found the solution…
add_filter( 'term_link', 'remove_slash_taxonomy', 10, 2 );
function remove_slash_taxonomy( $permalink, $term ) {
if ($term->taxonomy == 'nieruchomosc') $permalink = str_replace("https://wordpress.stackexchange.com/".$term->slug."https://wordpress.stackexchange.com/", $term->slug, $permalink);
return $permalink;
}
Related Posts:
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- WP redirects pretty permalink to query string
- Add parent/child taxonomy to custom post type url
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Taxonomy Pagination Rewrite
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How do I get the correct URL?
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Rewrite URL for a specific taxonomy [duplicate]
- Remove taxonomy base or term from url
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Can’t get a custom template taxonomy page to display
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- How to enable hierarchical permalinks for hierarchical taxonomies
- Taxonomy archives based on Custom Post Type
- URL rewrite rules for multiple taxonomies query
- Permalink rewrite with custom post type and custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- Pros and cons of using [taxonomy name] in place of [category name]?
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- how to get archive urls with same origin for custom types and terms?
- How do I get WordPress URL rewrites into Sitemap?
- Create multiple rewrite endpoints for custom taxonomy archive
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Remove url rewrites for registered taxonomies
- Change the permalink URL to include a taxonomy term
- Rewrite Rule Working for all but one of the taxonomies created
- Page and Post return 404 with custom taxonomy
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Permalinks with CPT and Hierarchical Taxonomies
- woocommerce custom product category template
- Permalink help with default Posts and custom Taxonomy
- Add Taxonomy Subcategory To Permalink
- How do I create a permalink structure with 2 taxonomies
- How to get list of taxonomy slugs ordered parents>childs?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Rewrites with hierarchical taxonomies in permalink
- Rewrite rules for varying nested terms of custom taxonomy
- How to rename custom taxonomy URL with extra words
- Custom URLs in Custom Search Results
- Query custom taxonomy by term id?
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- Permalink Problems
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- How to add hierarchical taxonomy with parent child relation to URL?
- Clean Custom URL for Serach + Custom Taxonomy
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- Custom rewrite permalink doesn’t work
- forward/redirect taxonomy archive of term to a page with same name
- URL rewriting taxonomy term
- Modifying rewrite rules to use /category//
- Permalink issues with custom taxonomies
- Custom taxonomy and post type rewrite rules
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Taxonomy URL rewrite whilst keeping filtered posts?
- How to properly set the rewrite rules for this case?
- How to replace custom post type with custom taxonmy in permalinks
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Multiple Custom Taxonomy Rewrite
- Change CPT permalink to use the category
- Redirect Custom Post Type from Child Taxonomies
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- How to paginate with an query var appended to permalink?
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- page not found for example.com/custom-post-name
- Need help understanding a rewrite with multi-level taxonomy
- redirect old post type url to new structure url
- If term and page have the same slug, how can I view the term archive?
- Why won’t this rewrite rule work?
- rewriting for custom taxonomy rewrite
- Parent cpt/child custom post type URL permalink relationship
- Taxonomy to WordPress Permalinks of custom post type
- Multiple Taxonomy in URL/Query – No Custom Post Type
- New rewrite rules for custom taxonomy and reuse default
- Custom Taxonomy Archive URL rewrite
- Later change of taxonomy slug base not changing permalink
- Two taxonomies with the same slug