Forums Forums Search & Filter Pro Creating a form based on Parent Categories

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #255897

    Hello,

    Is it possible to create a form using only 1 parent category and its sub categories?

    Thanks,

    Trevor
    #255900

    There are three possibilities (#1 would be my choice):

    #1 Make a custom taxonomy for that parent and have inside it it as terms just those child terms. It is possibly to switch taxonomy terms, so, whilst you would have to redefine the children to be normal parent terms, then switch them, that is not too much work. I can give you the names of the plugins that you might want to use to do this.

    #2 In the Tags, Categories & Taxonomies, use the ‘Include’ option to include just the children of that parent. Post that did not have those terms would disappear. Not ideal if some posts have no terms associated at all.

    #3 In the Form UI, when the Taxonomy has been added to the form, in the field settings, in the Advanced section, you can deselect the Sync with Settings checkbox and choose to exclude all other terms.

    Options #2 and #3 mean that, if new terms are added to posts, you have to edit the form settings.

    Anonymous
    #255904

    Oh I see. Yes it sounds like #1 is probably the most logical option. Would you mind sending your plugin recommendations? I would greatly appreciate it.

    Trevor
    #255906

    So, remember first to edit each of the child terms to make them parents. This is most important. When you are editing each of them, note the ID numbers of each (you can usually see this in the URL, or by hovering over the edit link and looking at the URL of that).

    You can create custom taxonomies (and also custom post types, but you want taxonomies, the second option in the plugin) with CPT UI:

    Custom Post Types UI plugin

    And switch the taxonomy terms from one taxonomy to another using:

    taxonomy switcher

    Anonymous
    #255981

    Thank you!

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