• Hi, great plugin.

    I have a custom post type called events, with event categories defined. But how do I set the form submission to set to a certain event category.

    I can’t get it to work whatever I do :-/

    I’ve tried:
    [checkbox* post_category_name “Gigs” “Sports and Fitness”]
    [checkbox* post_category “Gigs” “Sports and Fitness”]
    [checkbox* event_category_name “Gigs” “Sports and Fitness”]
    [checkbox* event_category “Gigs” “Sports and Fitness”]
    [checkbox* meta_event_category “Gigs” “Sports and Fitness”]
    [checkbox* post_category “191” “192”]

    Thank you!
    J

    https://wordpress.org/plugins/form-to-post/

Viewing 1 replies (of 1 total)
  • @mrjcgoodwin

    This was a bit of a headache, but I figured out that you need to put the category SLUG name within the quotation marks (not the category name). If you want to have a mult-worded category name just put a dash in between the words of the actual slug (in your WordPress category settings) and you can write it without the slugs in the quotation.

    So your “Sports and Fitness” slug would have to be “sports-and-fitness” and use this code in your CF7 form:

    [checkbox* post_category_name “Gigs” “Sports and Fitness”]

    or in a dropdown menu…

    [select* post_category_name “Gigs” “Sports and Fitness”]

    etc…

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Type Categories’ is closed to new replies.