Terms Being Automatically Loaded on Custom Taxonomies
-
Hi,
I have quite a few custom post types on my site, as well as custom taxonomies connected to them, all added with CPTUI. I’ve recently noticed that on a page where I have the form to add one of the custom post types, all of the custom taxonomies have some terms already added:
It’s always the same terms pre-filled upon refresh. My first instinct was that the terms had somehow been applied to the page itself where the form was. However, I’ve tried adding the form to a new page and it’s the same result. I’m using the plugin ACF Frontend Form for the forms so thought it might be related to that, but even if I add the form with a shortcode from the ACF Extended form builder or add the form directly with PHP, it’s the same.
I narrowed the issue down to the Load Terms option in ACF when editing the Field Group. If I disable Load Terms, then the fields are empty on the page to add the new post, but I need Load Terms for editing those post of this custom post type. Plus, all the other custom post types/custom taxonomies don’t have this issue so I don’t really understand why it’s only happening with this one?
I’ve tried creating a new ACF Field Group with the same taxonomies: same result. I’ve tried renaming the custom taxonomies (migrating the slugs) and the taxonomy ACF field slugs: same result. The only thing that essentially works is creating a new custom taxonomy but then I’d have to add in all the terms and update every post (there’s hundreds), plus update the field name/taxonomy slugs on all my templates. If it was just one of the custom taxonomies attached to this post type, I might just go ahead and do that, but for whatever reason it’s ALL the custom taxonomies attached only to this post type.
It’s almost as if the custom taxonomies themselves are corrupted/have those terms somehow attached to them permanently. And since it appears to be related to the custom taxonomies themselves (which were added with CPTUI), I figured I would ask here if you’ve ever come across this issue and why it might be happening? As well as any solutions of course. Thanks a lot.
The topic ‘Terms Being Automatically Loaded on Custom Taxonomies’ is closed to new replies.