I'm trying to get GF to submit to a page rather than a post. I read this thread: http://www.gravityhelp.com/forums/topic/can-pages-be-created-from-form-submissions#post-1832 and have it sort of working.
I used this code:
add_filter("gform_post_data", "change_post_type", 10, 2);
function change_post_type($post_data, $form){
//only change post type on form id X
if($form["id"] != 1) // You need to change your form ID here
return $post_data;
// Add other page data to change
$post_data["post_type"] = "page";
$post_data["post_parent"] = 42;
return $post_data;
}
I'm trying to get it to post to a specific page - not create a new page. The form is located at: http://www.devusedtires.socialwebdzine.com/reviews. I want to post the reviews to the top of that page before the form. Is it possible to do that?