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.

post feature image

  1. jet
    Member

    I have a form almost working perfectly.... You fill out the form and add a file (image), the post is automatically created, the image is placed in the post (using the content template)...
    My problem is, i want that same image to be the "Feature Image". My site uses the feature image to create thumbnails through out the site.. How do have that file (image) populate the Feature Image?

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  2. Here is a forum post that discusses how to set it as the post thumbnail or feature image depending on how you customize the code.

    http://www.gravityhelp.com/forums/topic/auto-setting-the-the_post_thumbnail?

    Please note that when using the gform_post_submission hook if you call it like this:

    add_filter("gform_post_submission", "set_post_thumbnail", 10, 2);

    That applies that code to all of your forms. If you append the form id to the end of gform_post_submission like this:

    add_filter("gform_post_submission_5", "set_post_thumbnail", 10, 2);

    That will apply that custom code only to that form id, in this example it would be form id 5.

    We do plan on making this a built in feature in a future release.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  3. jet
    Member

    Hello, thanks for the speedy reply, i have pasted that code in the custom_functions.php, within the Headway Theme. Nothing changed after pasting the code...I ended up purchasing Gravity from their (Headway Site )recommendation, So i am sure this is just some small thing i am not doing correctly. Do you have any ideas?

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  4. It's working for other users, all I can suggest is make sure you made the proper edits to the code. It isn't going to work as is, you have to customize it to suit your needs. You have to modify the code with your form id, etc. I'm not 100% sure how Headway's custom_functions.php works if it's the same as simply putting code in functions.php so you may need to discuss that with Headway support.

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  5. jet
    Member

    The only thing to change is the id of the form? correct?
    mmm not sure why its not working...

    Posted 13 years ago on Thursday March 3, 2011 | Permalink
  6. jet
    Member

    mmm still not working...

    Posted 13 years ago on Friday March 4, 2011 | Permalink
  7. @jet I'm not sure what we can do to assist as this is considered a customization. You may want to have a web developer look into it for you and make sure it is implemented correctly. As you can see from the forum post that included the solution there are multiple users that have implemented it without a problem so it does work.

    Posted 13 years ago on Friday March 4, 2011 | Permalink