Items from media library won’t get added to a custom taxonomy

So I created 2 custom taxonomies and attached these to the media post type

Items from media library won't get added to a custom taxonomy

for 2 types default products and season products and I used them for a special page on a site where the owner can upload pictures to show off what the owner has made. For some reason I can add the terms when I edit the image, but it won’t get added to the taxonomies list which stays on 0 items and I can’t seem to find out why.

Items from media library won't get added to a custom taxonomy

Items from media library won't get added to a custom taxonomy

This is how it’s made

Items from media library won't get added to a custom taxonomy

Items from media library won't get added to a custom taxonomy

Am I missing something or have I done something wrong?

Also if you need more info please let me know.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

i fixed my problem, the easy solution was to add to the args list just before the register_taxonomy :

'update_count_callback' => '_update_generic_term_count', 


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x