Hello, this one seems a little odd but I have not been able to get to the bottom of it, so any help is appreciated.
I have created a custom Taxonomy on my Portfolio custom Post type. This taxonomy is showing up and works perfectly fine.
I am accessing the taxonomy name and url through a shortcode so I can output the name and link to other entries in the following matter:
'<a href="' . get_term_link($e) . '">' . $e->name . '</a>'
This is working perfectly fine and I get the output that I am looking for except for the permalink. The permalink is being formatted with my portfolio base category, in my case this is “galerias” so the link is coming out like:
/galerias/taxonomy/term
When clicked this results in a 404.
I attempted to visit instead:
/taxonomy/term
And this does work. So when the permalink is automatically generated using the “galerias” base, it is outputting a 404.
How can I either ensure that /galerias/taxonomy/term does not throw a 404 or instead fix the permalink that is generated for this custom taxonomy so that it does not uses the base?
Thanks.
I was able to figure this one out guys, sorry.
I was using a plugin to customize the permalinks on custom post types and the plugin had a checkbox for:
Use custom permalink of custom taxonomy archive. If you check,The custom taxonomy’s permalinks is https://***.com/post_type/taxonomy/term.
So unchecking that option fixed my issue.
I am not aware yet if this has broken something else anywhere on the website but on initial inspection everything seems to be working.
Thanks!
Hi!
Thanks for posting your solution momon. Let us know if you have any other questions.
Best regards,
Elliott