Gravity Forms + Custom Post Types
add hierarchical taxonomy item via single line text. or (3 posts)

  1. CantusFirmus
    Posted 3 years ago #

    Am I missing something that's right in front of me? I can see how easy it is to "Save to Taxonomy", but apparently this only works for Tags. Suppose I want to add a category to a custom post type. Is there a way to do this?

    Many thanks!


  2. bradvin
    Plugin Author

    Posted 3 years ago #


    When saving to a taxonomy from a single line text field, it only works with non hierarchical taxonomies (eg. tags). It cannot work with hierarchical taxonomies (eg. categories) because there is no way to determine the parent taxonomy when saving the term against the custom post.

    If you want to use a hierarchical taxonomy like categories, then use a dropdown field, which builds up the hierarchy in the dropdown

  3. benhass
    Posted 3 years ago #


    What about functionality for adding both a parent and a child term (and even a grandchild term)? Perhaps the second single line text field could look for 2nd level terms?

    I'm thinking through a problem where the user will submit terms to a location taxonomy - state, city, place. The idea being that at each place there are a few projects (custom posts).

    In theory, couldn't you have a set of text fields, with the first being the parent, the second the child, and the third the grandchild?

    - Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms + Custom Post Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic