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.

Submit a review and add to an existing page

  1. momofone
    Member

    Hello,

    Can Gravity Forms be used to submit a text review with the possibility of uploading pictures to an events/concert page that already exists on the same page as the form? I am thinking of something not unlike the existing wordpress comments form, but the content of the review get's output into a reviews section on an events custom post? i.e. "Submit a review for this event"

    Thx

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  2. David Peralty

    It could be used in this manner, but it would require extensive customization from a skilled PHP developer familiar with Gravity Forms.

    Out of the box, there wouldn't be any way to do this and have it posted publicly.

    The potentially easiest way to do this would be to have a theme developer customize how posts are displayed (Event Page = Post Category) and have Gravity Forms create posts under categories related to the event.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  3. kyle
    Member

    I think you could do this with the Gravity Forms Custom Post Type plugin, and GF. The post type (lets call it "review") would need a way to reference the specific post, and you'd need to do some programming on the page that displays the original event/post to have it now pull in any reviews associated with the ID of the event.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  4. David Peralty

    Thanks Kyle, I always forget about the Custom Post Type stuff that WordPress has added. Either way, it is definitely more of a theme change than a Gravity Forms change to accomplish the goal.

    Posted 12 years ago on Wednesday April 18, 2012 | Permalink
  5. Feel free to post on the job board:

    http://www.gravityhelp.com/forums/forum/job-board

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  6. kyle
    Member

    Hey, didn't realize there was a Job board. Interest piqued.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  7. momofone
    Member

    Thanks for your help.

    I found this snippet in the comments section at http://yoast.com/gravity-forms-custom-post-types/

    We have editing working with Gravity Forms, through a fairly simple process:
    1. Embed a hidden field in your form to hold the ID of the post to edit
    2. When you display the form using gravity_form() function in your template, pre-populate the fields with the data from your post ($field_values parameter)
    3. Add a hook to gform_post_data, that extracts the ID from the form (rgpost() function) and set $post_data["ID"] = your_post_id;

    That's it - when GF calls the wp_insert_post it will detect that ID is set and modify the existing post, rather than creating a new one.

    Which will probably do what I need. With a "types" and "views" template I am pretty sure I could get something workable.

    Posted 12 years ago on Friday April 20, 2012 | Permalink