I have several post submission forms for different types of content on my site. For some of them I need the submitted post to be set to a specific custom taxonomy term by default.
For instance, I have a custom post type called "Gear" with a custom taxonomy of "Gear Post Types" and there are three gear post types: guide, review, roundup. As the content for each type is very different, each Gear Post Type has it's own form.
I need the form for Gear Reviews to have the term "review" assigned by default.
I've tried adding a taxonomy field and using std to set the default term, and as I don't want the user to see the field I hide it with CSS. The problem is that when I hide the field, the term doesn't stay set.
I've also tried to use the rwmb_frontend_after_save_post function but it saves all Gear posts as reviews, not just those that use the gear review form.
I've tried to figure out how to use the hidden field to set the term, but for the life of me I can't figure out how to use that particular field.
Something this simple shouldn't be so difficult to do, any help at all would be greatly appreciated.