WordPress.org

Forums

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

  1. Marcelo Pedra
    Member
    Posted 1 year 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 Web Design
    Member
    Posted 1 year 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 1 year ago #

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

  4. Pioneer Web Design
    Member
    Posted 1 year 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 1 year 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 Web Design
    Member
    Posted 1 year 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 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Parent Category Toggler
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.