Title: Custom taxonomy causing permalink to encode incorrectly
Last modified: July 30, 2020

---

# Custom taxonomy causing permalink to encode incorrectly

 *  Resolved [nutriaflotante](https://wordpress.org/support/users/nutriaflotante/)
 * (@nutriaflotante)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/)
 * I have a site with a custom post type of “barristers” and a custom taxonomy of“
   aol” (areas of law). When I create a post of type barrister, it works fine unless
   I apply one or more terms from “aol”. Whenever a post has terms from that taxonomy,
   its permalink has an encoding issue – so [https://evidentlyso.com.au/clients/ood/clients/ood/barrister/test/](https://evidentlyso.com.au/clients/ood/clients/ood/barrister/test/)
   becomes [https://evidentlyso.com.au/clients/ood/?redirect_to=%2Fclients%2Food%2Fbarrister%2Ftest%2F](https://evidentlyso.com.au/clients/ood/?redirect_to=%2Fclients%2Food%2Fbarrister%2Ftest%2F)
 * I’ve tried changing the permalink type to no avail.
 * Any help would be greatly appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-taxonomy-causing-permalink-to-encode-incorrectly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13190765)
 * Have you done any customizations with regards to taxonomy terms, custom rewrite
   rules, or redirects?
 * Asking because it is odd that one of the links above shows “clients/ood/” twice.
 * It’s also really odd that, at least based on what it sounds like, just having
   a term assigned to the post is causing these things?
 *  Thread Starter [nutriaflotante](https://wordpress.org/support/users/nutriaflotante/)
 * (@nutriaflotante)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192707)
 * No, I haven’t done any customisations, just set the labels and changed a couple
   of the settings in the standard interface.
 * That doubling-up in the url was a mistake on my part – I had cut-and-pasted the
   two halves of the url and obviously did it badly. The actual url only has one“
   clients/ood”.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192827)
 * Noted.
 * Just to confirm, having a term assigned to a post is causing these things?
 * Would you be willing to send over your config for the post types/taxonomies via
   the Tools area of CPTUI? Should see some tabs with blobs of text on the right
   for both post types and taxonomies. I can get those imported locally and test
   with that.
 *  Thread Starter [nutriaflotante](https://wordpress.org/support/users/nutriaflotante/)
 * (@nutriaflotante)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192849)
 * No worries. I don’t seem to be able to attach anything here, so I’ve just pasted
   them inline.
 * Post Type:
    {“barrister”:{“name”:”barrister”,”label”:”Barristers”,”singular_label”:”
   Barrister”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”show_ui”:”
   true”,”show_in_nav_menus”:”true”,”delete_with_user”:”false”,”show_in_rest”:”true”,”
   rest_base”:””,”rest_controller_class”:””,”has_archive”:”true”,”has_archive_string”:”
   areas-of-practice”,”exclude_from_search”:”false”,”capability_type”:”post”,”hierarchical”:”
   false”,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”false”,”query_var”:”
   true”,”query_var_slug”:””,”menu_position”:”18″,”show_in_menu”:”true”,”show_in_menu_string”:””,”
   menu_icon”:”evidentlyso.com.au\/clients\/ood\/wp-content\/themes\/chambers33\/
   img\/barristerIcon.svg”,”supports”:[“title”,”editor”,”thumbnail”,”custom-fields”],”
   taxonomies”:[“category”,”aol”],”labels”:{“all_items”:”All barristers”,”add_new”:”
   Add new”,”add_new_item”:”Add new barrister”,”edit_item”:”Edit barrister”,”new_item”:”
   New barrister”,”view_item”:”View barrister”,”view_items”:”View barristers”,”featured_image”:”
   Portrait photo”,”set_featured_image”:”Set portrait photo”,”remove_featured_image”:”
   Remove portrait photo”,”menu_name”:””,”search_items”:””,”not_found”:””,”not_found_in_trash”:””,”
   parent_item_colon”:””,”use_featured_image”:””,”archives”:””,”insert_into_item”:””,”
   uploaded_to_this_item”:””,”filter_items_list”:””,”items_list_navigation”:””,”
   items_list”:””,”attributes”:””,”name_admin_bar”:””,”item_published”:””,”item_published_privately”:””,”
   item_reverted_to_draft”:””,”item_scheduled”:””,”item_updated”:””},”custom_supports”:””}}
 * Taxonomy:
    {“aol”:{“name”:”aol”,”label”:”Areas of law”,”singular_label”:”Area
   of law”,”description”:””,”public”:”true”,”publicly_queryable”:”true”,”hierarchical”:”
   false”,”show_ui”:”true”,”show_in_menu”:”true”,”show_in_nav_menus”:”true”,”query_var”:”
   true”,”query_var_slug”:””,”rewrite”:”true”,”rewrite_slug”:””,”rewrite_withfront”:”
   1″,”rewrite_hierarchical”:”1″,”show_admin_column”:”true”,”show_in_rest”:”true”,”
   show_in_quick_edit”:””,”rest_base”:””,”rest_controller_class”:””,”labels”:{“menu_name”:”
   Areas of law”,”all_items”:”All areas of law”,”edit_item”:”Edit area of law”,”
   view_item”:”View area of law”,”update_item”:”Update area of law name”,”add_new_item”:”
   Add new area of law”,”new_item_name”:”New area of law name”,”search_items”:”Search
   areas of law”,”popular_items”:”Popular areas of law”,”choose_from_most_used”:”
   Choose from most used areas of law”,”not_found”:”No areas of law found”,”no_terms”:”
   No areas of law”,”items_list”:”Areas of law list”,”parent_item”:””,”parent_item_colon”:””,”
   separate_items_with_commas”:””,”add_or_remove_items”:””,”items_list_navigation”:””},”
   meta_box_cb”:””,”object_types”:[“barrister”]}}
 * Thanks.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192957)
 * That works. Stand by.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192976)
 * At least in terms of settings, I’m not seeing anything wrong here, so I have 
   to wonder if there’s some other aspect of the site interfering. I did notice 
   that I can’t actually get to the single post for these as well, it keeps dropping
   me on the same link I was at.
 * Is this a site that you could deactivate other plugins on to see if the issue
   goes away when current active ones aren’t present? Best I can offer for an idea
   at the moment, without access to the site and whatnot.
 *  Thread Starter [nutriaflotante](https://wordpress.org/support/users/nutriaflotante/)
 * (@nutriaflotante)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13192993)
 * OK, I should have done that earlier, so apologies for that.
    It’s a clash with
   this plugin: [https://en-au.wordpress.org/plugins/restrict-user-access/](https://en-au.wordpress.org/plugins/restrict-user-access/)
 * Unless you have an easy workaround, I will just find another plugin that does
   the job I was using that other plugin for.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13193006)
 * No available suggestions from me for that detail but I’m glad we got it figured
   out. I do have to wonder if they could play nicely together with settings tweaks.
 *  Thread Starter [nutriaflotante](https://wordpress.org/support/users/nutriaflotante/)
 * (@nutriaflotante)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13193024)
 * No worries. Thanks for your time and apologies again for not switching off the
   other plugins before contacting you.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13193043)
 * No worries from me either, it’s a step that’s not always obvious or even feasible.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Custom taxonomy causing permalink to encode incorrectly’ is closed to
new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

 * [custom taxonomy](https://wordpress.org/support/topic-tag/custom-taxonomy/)
 * [encoding](https://wordpress.org/support/topic-tag/encoding/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 10 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-causing-permalink-to-encode-incorrectly/#post-13193043)
 * Status: resolved