WordPress.org

Ready to get started?Download WordPress

Forums

How to limit taxonomy term selection (3 posts)

  1. Ricardo
    Member
    Posted 3 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
    Member
    Posted 2 years ago #

    Did you find any solution?

  3. bcwp
    Member
    Posted 2 years ago #

    This might help:

    http://wordpress.stackexchange.com/questions/3633/how-to-filter-post-post-content-prior-to-save

    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