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.

Add Tags to a post

  1. reddishpink
    Member

    Hello
    I know I have another post about this but this request may be a bit simpler.

    I have a custom post form that submits a post in a specific category, with custom post fields. What I would like is for some of the fields to be Wordpress tags on the post as well. Is this possible with Gravity Forms?

    Here's my form incase you need it
    http://franklydifferent.com/soc/?gf_page=preview&id=2

    Thank you

    Posted 11 years ago on Wednesday August 22, 2012 | Permalink
  2. I did this recently to add the first and last name of the person submitting the form as post tags. here is the code for that: http://pastebin.com/gfGcqdzp

    Change the 15 on line 4 to your form ID and on line 8, change the input_6_3 and input_6_6 to the fields in your form you want to add as tags. That should take care of it.

    You can rename the function to make it something more meaningful to your application (rename it in two places.) This is optional.

    p.s. only logged in users with proper permissions can see your form preview. We cannot.

    Posted 11 years ago on Friday August 24, 2012 | Permalink
  3. reddishpink
    Member

    hello! actually I found this article and tried to apply it to my functions.php
    Is that where it goes? I got a PHP error when I had.

    Can you tell me what file to add this too?
    Thanks

    Posted 11 years ago on Friday August 24, 2012 | Permalink
  4. reddishpink
    Member

    i got it! The functions in my theme. Thank you!

    Posted 11 years ago on Friday August 24, 2012 | Permalink
  5. Glad you got that worked out. Thanks for the update.

    Posted 11 years ago on Saturday August 25, 2012 | Permalink

This topic has been resolved and has been closed to new replies.