Hi @bward
Seems you’ve moved past this in your live link provided 🙂
I’m not 100% following your setup. But it sounds to me that either you have a taxonomy setup for two different CPTs OR there are terms in a taxonomy that should not appear for a CPT?
If it’s the latter.. are the taxonomy connected to multiple CPTs?
Thread Starter
bward
(@bward)
@jonathandejong I changed it up on you, sorry about that, but I certainly appreciate the response!
I did have a third drop down on that page, but ended up combining it into the drop-down labeled “Resources”. After looking over this again, I do not see the issue anymore… I wonder if I had caused my own issue and fixed it when I combined one of the menus?
I do have multiple custom taxonomies, so CPT 1 and CPT 2, both have Tax 1 and Tax 2 assigned to them for use, though they may not specifically be in use by a post.
Example of the issue I did have.
CPT 1:
Tax-1
CPT 2:
Tax-1, Tax-2
On the filter of the archive for CPT 1. I would see Tax-2 as an option, which is not valid since it was not assigned to a post with CPT 1. If I selected that (Tax 2) filter value and selected “apply filter” I would get a broken page as CPT 1 does not have Tax 2 assigned. However, if I selected “Enable conditional dropdown values” I did not have this issue. Though I still saw “Tax-2” even though CPT 1 does not have a Tax 2 value.
It was a bit confusing from a user level perspective. Again, since I removed that third drop down menu, I do not see this anymore and it functions how I expect.
If you cannot shed any light on that, no worries, I just do not want to have issues at a later date when we roll this out.
Thanks so much!
Ah yeah you can see some discussion going on about this here as well:
https://wordpress.org/support/topic/feature-request-filter-empty-taxonomy-per-custom-post-type/#post-10189235
The problem is that wp_dropdown_categories which BTFs dropdowns are based on does not handle multiple taxonomies connected to multiple CPTs too well. So in short: to avoid any issues dont use the same taxonomies for multiple CPTs. at least for now.
Thread Starter
bward
(@bward)
I see. For our setup we have to share the custom taxonomy with our CPTs, at least most of them. Good to know I was not losing my mind! If you can swing an update at some point I’m sure many would appreciate an already great plugin.