WordPress.org

Ready to get started?Download WordPress

Ideas

If child taxonomy term is selected, automatically select set the parent term

  1. cabaj
    Member

    12345

    For hierarchical taxonomies, when you have:

    MyTaxonomyParentTerm
    -MytaxonomyChildTerm

    and you select the child term, it would be nice if the parent term were automatically selected.

    This behavior could be optional in wordpress settings so as not to alienate those that use taxonomies in a different way.

    Would be great if this were core behavior.

    Posted: 2 years ago #
  2. I don't think that it would be good for core behavior, but this JS snippet will accomplish it for you easily enough:

    https://gist.github.com/georgestephanis/6869291

    Posted: 9 months ago #
  3. Blake Imeson
    Member

    Thanks George!

    Posted: 9 months ago #
  4. aaronrobb
    Member

    Where would this code be put? Its own file in a JS folder, or directly in somewhere?

    Posted: 5 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    4 Votes
  • Status

    This is plugin territory