Home Forums Plugin Support WP User Frontend Pro Custom Post taxonomy checkbox: checked?

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  docandtee 5 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5280

    docandtee
    Participant
    Post count: 25

    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

    #5282

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #5284

    docandtee
    Participant
    Post count: 25

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

    Cheers

    D

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom Post taxonomy checkbox: checked?’ is closed to new replies.