WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms + Custom Post Types
Image upload > save to custom field (4 posts)

  1. adambundy
    Member
    Posted 2 years ago #

    I would like to create a post image or file upload field in my form, which is creating a new post in my custom post type (Creative Projects), which would store the URL of the uploaded image in one of my pre-configured custom fields. Any ideas?? Thanks!

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

  2. bradvin
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    there is a post image field you can add to your form. You can then set the image to be the featured image for the created custom post type. That should solve you problem

  3. adambundy
    Member
    Posted 2 years ago #

    Thanks very much for your response - however my new content type has a main image, then a few additional images being stored as custom fields (via Meta Boxes created with Easy Custom Content Types), so I have images in addition to the post thumb whose uploaded URLs I need to store. Only thing I can think of is to use file upload fields and use some trickery on submit to take those values and insert them into hidden custom field fields on submit of the form. Am I missing an easier way to do this? Thanks again!

  4. adambundy
    Member
    Posted 2 years ago #

    I have resolved this issue for anyone with the same problem. You can use the Custom Field field type and there is an option to select the type of field. You can then select which established custom field in which to store the data. In this case, I selected the 'file upload' type. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic