PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How To: Populate Custom Taxonomies with a Checkbox

  1. Let's say you have a form that you want people to fill out and then be able to edit later and in this form you have [at least] one set of checkboxes that you want to populate to a custom taxonomy.

    In my case I have a Custom Post of "Students" that had two custom taxonomies attached to it; "Teachers" and "Classes." I needed people to be able to edit a "Student" entry and change what teacher and class the student was in.

    Here's what I did...
    http://pastebin.com/27518Qtu

    Use this multiple times on one form. Just duplicate it as needed.

    Make sure you click the "Show Values" box on the checkbox field in the admin as you're setting up your form. The "Value" should match the slug name from the taxonomy.

    Hope this helps!

    Posted 7 years ago on Thursday August 16, 2012 | Permalink
  2. Thanks for posting your solution!

    Posted 7 years ago on Thursday August 16, 2012 | Permalink