I followed a thread in this forum to use a gravity form and have it convert a post to a custom post type I created called "companies". (It's closed so I can't add a comment to it) Here was the code I put in my custom.functions.php based on the example given:
add_filter( "gform_post_data", "update_post_type", 10, 2 );
function update_post_type( $post_data, $form ) {
if( $form["id"] == '2' ) {
// Set our custom post type
$post_data["post_type"] = "companies";
}
return $post_data;
}
It sort of worked. The test I did of the form was submitted, and a draft post called "Love this photo" was made in my companies list of posts, but instead of it being in blue (like a hyperlink), the title of the post is black (so I can't click on it) and there is no check box next to it. Also when I hover over it, there are no options popping up for me to edit it. So it's just sitting in my list of other "companies" I made the normal way (not through a gravity form) and I can't edit it or delete it.
Here's what the post looks like in my list: http://tinypic.com/r/o9iavo/3
I am way stuck. What do I do to not only edit/delete this test post but also fix it so future posts are editible?
Thanks for any help
Curtis