Hey Dude,
I went ahead and purchased the Expose theme based on your response to my previous question and learned that the theme doesn't function how I had initially asked. I was hoping that the theme would take the image in the post body, and from that create the thumb/feature image. I learned once I purchased that the image has to be added via a meta box on the edit post page. Here is what I am trying to create.
I am using the Gravity Forms plugin to allow users to submit info, and a image via the form to create a post. I did a test and the image uploads to the body of the post, but the theme doesn't auto resize the image in the post for the thumb. The free Gallery theme by Chris Wallace (http://upthemes.com/2010/03/gallery/) does this beautifully, but I am a fan of the Kreisi look.
I found the code in Expose for the Media upload in the kriesi_meta_box.php file. Do you think it is possible to grab some of the code from the media upload and add it to the Gravity Forms post image submission hook below so the image uploaded becomes the thumb/feature image?
add_filter("gform_post_submission", "set_post_content", 10, 2);
function set_post_content($entry, $form){
//Replace 1 with your actual form id
if($form["id"] != 1)
return
//getting post
$post = get_post($entry["post_id"]);
//changing post content.
//NOTE: Replace 8 (in $entry[8]) with your actual image field id. You can find the id by inspecting the page markup
$post->post_content = "This is my image
";
//updating post
wp_update_post($post);
}
Thanks for any input.