I understand how to let users assign which categories their post will belong to as described here:
In addition to this I need to assign the user’s post to a specific category (the same category each time)
One way I have thought that might work is to add an extra dropdown field containing a single element on my form, assign it the required category using the method described in the URL above, then hide the drop down from users via css (display:none) since it will always need to be set to the same value hence the user never needs to see it.
Is there a better way that I am missing?
ie. I can’t seem to figure out how to assign a hidden field on my form to a specific category value on the ‘Create Post’ screen.