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.

Wordpress Post Tags

  1. cmccrone
    Member

    I am using GF to submit posts from the front end. My issue is the wordpress tags. I want them hidden and to auto populate from the form fields labeled: City, State, Profession, etc and create a template in the wordpress tags field like this {City}, {State}, {Profession}.

    The problem is doesn't work. The tags keep the "{ }" around it and it doesn't pull the data. It just uses the template tags. It works VERY WELL with custom fields to fill my SEO Platinum WP tags but not the OEM wordpress blog tags.

    I can I make this work?

    Thanks everyone! :)

    Posted 12 years ago on Tuesday August 28, 2012 | Permalink
  2. Do you have a link to your form online and a page where the tags are shown currently?

    Posted 12 years ago on Wednesday August 29, 2012 | Permalink
  3. cmccrone
    Member

    Ill send you an admin login. Whats your email?

    Posted 12 years ago on Wednesday August 29, 2012 | Permalink
  4. Please send it to chris@rocketgenius.com

    Posted 12 years ago on Thursday August 30, 2012 | Permalink
  5. I took a look at your email and your form.

    There is no content template for the WordPress tags post field. So, your approach is wrong. That "tags" field is designed to allow input of tags by the visitor, not pull data from other fields in your form into the WordPress tags. If you want to add tags to the post based on some hidden fields, and also data entered by the user, you will need to do something like I explained here:

    http://www.gravityhelp.com/forums/topic/post-tags-auto-populatecontent-template#post-70496

    Change line 4 where the 15 is to make this code apply to form 10.

    You can change line 8 to look like this:

    [php]
    $post = array( 'ID' => $entry['post_id'], 'tags_input' => array('professional organizer', 'organize', rgpost('input_4'), rgpost('input_5')));

    That will add your two constant words as tags, and also field 4 and field 5 (city and state) as tags.

    Posted 12 years ago on Thursday September 6, 2012 | Permalink
  6. cmccrone
    Member

    Thank you sir! :)

    Posted 12 years ago on Thursday September 6, 2012 | Permalink