PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gravity Forms and Taxonomies

  1. wpuser
    Member

    I've looked through the documentation, but only seen an option for "tags" when creating a form that will be converted to a post. The post title, etc is great, but is there also a way to utilize taxonomies?

    This would work great with a theme such as Critical by Hybrid. A user could submit a movie, while also submitting the actor, director, etc options. http://justintadlock.com/archives/2009/06/04/using-custom-taxonomies-to-create-a-movie-database

    Perhaps its already an option and I'm not seeing it though. Appreciate the help!

    Posted 15 years ago on Friday October 2, 2009 | Permalink
  2. takemura
    Member

    Yes, I agree, this is would be useful. In fact, with WP's custom taxonomies it's a MUST. Perhaps a way to implement this would be for Gravity to detect your custom taxonomies and present them with check boxes.

    Posted 15 years ago on Friday October 2, 2009 | Permalink
  3. I agree and it is something we have already discussed internally. Currently it only supports the default tags taxonomy. But I will look into making this configurable if other taxonomies exist.

    Posted 15 years ago on Friday October 2, 2009 | Permalink
  4. wpuser
    Member

    Thanks for such a quick response Carl! Thus far I am extremely impressed with Gravity Forms and will be regardless of whether this functionality is added. Just to give/expand on a few more taxonomy examples that would be great to include in future versions.

    I'll use a movie database example (like Justin Tadlock's):

    1. New Post: A user could submit a new movie, and also submit the actor, director under the taxonomies that the administrator has configured. Thus when going into the admin panel, the post (including the artist, director tags/taxonomies) would be ready to go. This is already possible with the exception of the additional taxonomy/tag options.

    2. User Edits/adds To A Current Post: This one might be tougher to do, but basically give a user the option to add additional tags. For example, say I have a post about Dumb and Dumber, and filled out the actor, director, etc fields. When a user goes to the post, they realize I forgot to tag Jim Carey and submits it. From the admin panel I can accept the change, etc. Granted a similar option is available using the current GF by tying the response to the post and copy/pasting any suggested tags, but if it was automated that would be great!

    Posted 15 years ago on Friday October 2, 2009 | Permalink
  5. samdelgado
    Member

    I bought Gravity Forms specifically for a movie site just like one mentioned in this thread. I thought it came with these taxonomy features already. Any idea on how far away we are from this functionality?

    Posted 15 years ago on Tuesday October 27, 2009 | Permalink
  6. Sam,
    Taxonomies can't be changed via the UI, but you can get it done using one of GF's hooks with a few lines of PHP code. If you would like to try it out, give me some details on exactly what you are trying to accomplish and I can give you a code snippet to get you started.

    Posted 15 years ago on Tuesday October 27, 2009 | Permalink
  7. samdelgado
    Member

    Hey Alex! Thanks a lot for the response. I am creating a film database and I am creating a form for users to create film submissions. So the form has the title, summary of the movie, and image upload for the poster, and IMDB and Wikipedia link, the genre, the actors, the director, the writer, and the year of release. When a user types in like the genre or director, I want it to automatically be sorted into that taxonomy. I already have the custom taxonomies done within the site, so now it is just a matter of gravity forms being able to send each specific field to its right category. The main goal is for a user to hit the "Genre" page and they see every movie that is in whatever genre they end up choosing. I need the ability to make this submission so I can get a huge database I would never be able to create on my own. Hope that isn't too confusing. I will be popping in here all day to see if you need any more info.

    Posted 15 years ago on Tuesday October 27, 2009 | Permalink
  8. I will discuss this with the team and see if it is something we can include with the 1.3 release to enhance the Post Tag field.

    Posted 15 years ago on Tuesday October 27, 2009 | Permalink
  9. samdelgado
    Member

    Awesome thank you! Also, right now I am just having the user add actor, director, etc.. with the a text field. How do I get those text fields to display in the post? I have a ton of info they are filling out but the post is only showing the title and the body fields.

    Posted 15 years ago on Tuesday October 27, 2009 | Permalink
  10. Sam, only the Post Fields are used to create posts. If you have extra fields you need with the Post then you will want to use the Custom Field that appears in the Post Field section.

    Are you familiar with using custom fields with post/pages?

    Posted 15 years ago on Wednesday October 28, 2009 | Permalink
  11. samdelgado
    Member

    Ok, I have used custom fields for images and such, but I am not sure about the more complex things. So I basically want to create text custom fields, and then pull those into the gravity forms?

    Posted 15 years ago on Wednesday October 28, 2009 | Permalink
  12. Custom Fields can be used for text as well as images. They are just a key/value combination. So if you need more "fields" for your Posts created with Gravity Forms you can use the Custom Field from the Post Fields.

    You edit the Custom Field and give it a Name (also know as the Key) or choose from existing Names (also known as the Key). This name is what you then use in your theme template to display the custom field value.

    The process in your theme is pretty much like using custom fields for images only you are using it for text instead.

    Posted 15 years ago on Wednesday October 28, 2009 | Permalink
  13. samdelgado
    Member

    Ok thanks I will set that up now. So is it possible then to use the tags in a custom field so that whatever is entered will automatically be sorted to that category?

    Posted 15 years ago on Wednesday October 28, 2009 | Permalink
  14. So if I understand correctly, custom taxonomies support is going to be added in version 1.3? Any ETA on that?

    Posted 15 years ago on Tuesday November 10, 2009 | Permalink
  15. Remkus,
    Custom taxonomies did not make into the UI for 1.3, but we did add a filter that can be used to accomplish that.
    We are wrapping up internal testing and will be releasing 1.3 for beta testing to select users today. If you are interested in giving it a run, let me know and I will send it to you along with a code snippet on how to use the filter.

    Posted 15 years ago on Tuesday November 10, 2009 | Permalink
  16. I'd love to give a swirl

    Posted 15 years ago on Tuesday November 10, 2009 | Permalink
  17. samdelgado
    Member

    I would love to give it a try as well with the custom taxonomies filter. I have been waiting for the release to get going again on my project.

    Posted 15 years ago on Wednesday November 11, 2009 | Permalink
  18. Sam,
    please email me at alex[at]rocketgenius.com and I will send it your way with a sample code snippet for the custom taxonomies.

    Posted 15 years ago on Friday November 13, 2009 | Permalink
  19. samdelgado
    Member

    I keep getting an error when trying to add the custom taxonomies code to the functions file. Anyone have exact instructions on how to get this going?

    Posted 15 years ago on Wednesday November 18, 2009 | Permalink
  20. ovedmo
    Member

    hello greavityform team
    where can i find "if you are interested in giving it a run, let me know and I will send it to you along with a code snippet on how to use the filter. "
    where can i find a code snippet to use the filter??

    Posted 14 years ago on Monday December 28, 2009 | Permalink