Ignore this post, didn"t check docs properly
We have a form that creates a new post with each submission. I would like to tag each post with a custom taxonomy term or terms based on which checkboxes within the form are checked.
So say we have:
If any of checkboxes 1 - 4 are checked I would like to add termA to the post. If any of the checkboxes 5-8 are checked I would like to add termB. If say checkbox 3 and checkbox 7 are checked I would like to add both termA and TermB to the post.
This doesn't seem like it should be to hard provided their is an existing filter to get hold of the form and its data and modify it before it creates the post + a reasonable tutorial on working with form data. Hopefully we can just get the values of the checkbox fields in a php script and use <?php wp_set_post_terms() ?> with a few if statements to apply the terms through the filter.