Custom Post taxonomy checkbox: checked?

This topic contains 2 reply and 2 voices, and was last updated by docandtee 10 years, 10 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
June 26, 2013 at 1:27 pm 5280
docandtee Hello again I want people to be able to post a custom post but I would like a pre-defined taxonomy to be associated with the form. So, I will have one custom post type but maybe 3 different forms with 3 different taxonomies already checked (maybe in a hidden field). I don't want people to be able to change this taxonomy as it needs to be associated with the form they are submitting. Is it possible to have a custom post taxonomy checkbox that is already checked? Many thanks
June 26, 2013 at 2:27 pm 5282
Tareq Hasan Tareq Hasan

Yes, thats possible. If it’s the standard post category, you can already select this on the post settings. But if it’s a custom taxonomy, it can be done with some code.

Check this reply. You’ve to change the category with your custom taxonomy in wp_set_post_terms.

June 26, 2013 at 2:53 pm 5284
docandtee docandtee

Thanks Tareq
I’ll give that a go.
Thanks yet again for a swift response.

Cheers

D

Viewing 2 Posts - 1 through 2 (of 2 total)