custom taxonomy - Why is the category item count not updating after assigning a category?

I've created a custom category for items in the media libary. After I programmatically assign a category to an imag

I've created a custom category for items in the media libary. After I programmatically assign a category to an image ID, using wp_set_object_terms( $image_id, $cat_ids, 'my-custom_category', false ), when I check the custom category page. the categories that have assigned items show zero in the count column. Is there something else that has to be done when assigning a category so its category item count will display correctly?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745629181a4637000.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信