The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] How can I select all categories when editing posts (8 posts)

  1. Marcelo Pedra
    Posted 2 years ago #

    Hello guys. I'm having this very same need as a couple years ago somebody shared in these forums: http://wordpress.org/support/topic/admin-select-all-categories?replies=3, and to no avail.

    I have a site with a bunch of parent categories with about 7-20 child categories each, and I need a way to be able to automatically select all the childs when I select its parent. Moreover, a "Select All" categories link would be helpful too. I did a thorough search in the plugin repo and didnt find anything.

    Is there any solution? any plugin? function? filter? someone?

    Help please!

  2. C W (VYSO)
    Posted 2 years ago #

    EDIT: posted in the wrong thread.

  3. Marcelo Pedra
    Posted 2 years ago #

    EDIT: keep on topic please.

  4. C W (VYSO)
    Posted 2 years ago #

    Sorry, I seem to have posted that reply in the wrong thread!

  5. C W (VYSO)
    Posted 2 years ago #

    Incidentally, try this for a check all option. I just tested it myself and it seems to work well.

  6. Marcelo Pedra
    Posted 2 years ago #

    It works! Great! Thanks!

  7. Pioneer Web Design
    Posted 2 years ago #

    Make sure to use:


    in place of


    When adding this in a Child Theme (which we should be), so:

    The .js is fine, we use this function:

    function init_be_javascripts() {
        if (is_admin()) {
            wp_register_script('extra_be-script', get_stylesheet_directory_uri() . '/js/be-scripts.js', 'jquery', 0.1, true );
    add_action('init', 'init_be_javascripts');

    In the Child Theme functions.php (tested).

    Of course this selects every category there is...now we just need a tweak to select just the children on currently selected categories :-/

  8. Marcelo Pedra
    Posted 2 years ago #

    Guys, I just found a solution: one plugin!
    It does exactly what I wanted to, and it's thoroughly coded.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.