I've created two custom category taxonomies and am looking for a setting to prevent the taxonomy slug from showing in the URL. Is there one? If not is there a custom function I can use to prevent it from showing?
Do you mean for the URLs of the taxonomy archives?
So if you have a, say, colour taxonomy and a size taxonomy, the taxonomy archives appear at URLs such as
site.com/colour/red and site.com/size/small.
You can change what is used to distinguish the taxonomies, so instead of using the slugs in the rewrite settings for the custom taxonomy you can specify something other than the slug.
I have a custom post type "litters" with a taxonomy of "litter-status" with 3 options "current" "future" and "past"
so the URL is mydomain.com/litter-status/current
I would like the URL to be mydomain.com/current
I've tried modifying the example function, but am unable to get it to work with the custom post type taxonomy. (it does work with the native "category" URL)