WordPress.org

Ready to get started?Download WordPress

Forums

Parent Category Toggler
[resolved] Any way to do the inverse job? (8 posts)

  1. Marcelo Pedra
    Member
    Posted 2 months ago #

    Hello sirs, I'm looking for a plugin that allow me to do the exact inverse job that this plugin does: I need to select one parent category and set all its childs automatically selected.
    Do you know any way to accomplish this?

    http://wordpress.org/plugins/parent-category-toggler/

  2. Pioneer Valley Web Design
    Member
    Posted 2 months ago #

    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).

  3. Marcelo Pedra
    Member
    Posted 2 months ago #

    hmmm, haha nope. I really need something like a "Child Category Toggler" :)

  4. Pioneer Valley Web Design
    Member
    Posted 2 months ago #

    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).

  5. Marcelo Pedra
    Member
    Posted 2 months ago #

    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.
    :)

  6. Pioneer Valley Web Design
    Member
    Posted 2 months ago #

    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

  7. Marcelo Pedra
    Member
    Posted 2 months ago #

    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.

  8. Marcelo Pedra
    Member
    Posted 2 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.