最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

customization - Automatically check parents (in a taxonomy) when child is selected

programmeradmin1浏览0评论

On my website I have a custom taxonomy which contains a lot of parents, children, subchildren etc. Because of this, it is really long to manually find what I want, so do you know if there is a way to automatically tick all the parents when you tick a child ? An exemple : I have a taxonomy which lists regions of the world :

-Africa

-Europe

--France

---Paris

-America

And what I would like here is France and Europe automatically ticked if I manually tick Paris. Does someone know how to do this ? Thanks !

NB : The only thing I found which could be really helpful is this code to paste but does it work and where to paste it ? Thanks !

发布评论

评论列表(0)

  1. 暂无评论