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.

create image title from file name

  1. sascha
    Member

    Hi again,
    is there a way to use the file name (from post image field) and set it automatically as the title and alt text for that image?

    Posted 12 years ago on Monday December 5, 2011 | Permalink
  2. You could do this with the gform_post_data hook . You would access the file name, then update the post to set the alt and title to that value.

    You could also do it in your post template. It does not have to be done with Gravity Forms.

    Posted 12 years ago on Monday December 5, 2011 | Permalink