How to limit taxonomy term selection (3 posts)

  1. Ricardo
    Posted 5 years ago #

    I'd like to set a maximum amount of terms that an user can select from a custom taxonomy, no matter if he's doing it from the Add Post page or via the Quick Edit feature.

    Does anyone know how can I do it?

  2. alvaro05
    Posted 4 years ago #

    Did you find any solution?

  3. bcwp
    Posted 4 years ago #

    This might help:


    A crude solution (or maybe the only solution) would be to filter out the unwanted taxonomies just before the post is saved to the database.

    You may also write a jQuery routine to prevent the user from adding too many taxonomies in the first place. That would be the elegant way, but you'd still have to use a WordPress filter in case the user circumvents your jQuery method.

Topic Closed

This topic has been closed to new replies.

About this Topic