The only thing I can think of is to create a sub-cat for each parent-cat called ‘all’ (or similar). Then for each post that is = ‘parent’ and ‘all’, on post, execute a write to the db for that post id that adds all the subs. Custom function should work. (oh, and then remove ‘all’ also).
hmmm, haha nope. I really need something like a “Child Category Toggler” 🙂
That plugin author is a Happiness Engineer at Automattic.
Since the whole plugin is this:
https://plugins.trac.wordpress.org/browser/parent-category-toggler/trunk/parent-category-toggler.php
I imagine if asked nicely he may provide an answer for you (and others).
Yes, I hope he or anybody from the team can see this. I reviewe the source code for this plugin and see that it’s a couple jquery commands. It exceed my knowledge but I can bet the selectors may be put to work with the opposite purpose, by ticking childs based in marked parents.
🙂
Just posting here a similar post that checks all categories. Perhaps that work also can be expanded.
http://wordpress.org/support/topic/how-can-i-select-all-categories-when-editing-posts?replies=6
Yes, it works. I’ll code a small plugin to formalize it, and who knows, maybe others may sum up to it. I’d be using the plugin folder rather than the theme itself, so it can have some independence.
In case you dont read the other post, I just found a plugin to accomplish this:
http://wordpress.org/plugins/select-all-terms/
It does exactly what I wanted to, and it’s thoroughly coded.