I've run into this problem on about 4 different sites. When I embed a Gravity Form in a page or post, using the Gravity Form shortcode, the rendered page will not validate unless I remove the formatting using this procedure:
http://www.catswhocode.com/blog/top-10-wordpress-hacks-from-june-09
"Disable WordPress automatic formatting on posts using a shortcode"
Basically, I wrap the Gravity Form shortcode in this new [raw] shortcode, and the validation errors go away.
Any ideas?
Using WP 2.9.2 and GF 1.3.10. Have seen the problems with 3 StudioPress themes and the theme where I am having trouble right now happens to be the Reptile framework.
I was going to post the source here, and the validator messages, but I just realized it's a draft post and I am logged in so there is all sorts of admin/nonce stuff in the source that I'd rather not post. Here is the gist of the errors though:
# Error Line 114, Column 4: end tag for element "p" which is not open
</p></form>
# Error Line 115, Column 4: end tag for element "p" which is not open
</p></div>
There are 6 other errors after that, but only because of these two.
Here is the relevant source of the rendered page:
<div class='gform_footer top_label'>
<input type='submit' class='button' value='Submit' tabindex='4'/> <a href='http://www.example.com/wp-admin/admin.php?page=gf_edit_forms&id=3'>Edit this form</a>
</div>
</p></form>
</p></div>
Looking at that now, is it possible the validation error would only be because I am logged in, and a visitor would never see it if they're not seeing the edit button? I always validate the page before publishing it, from the preview, so maybe this validation error only happens because I am logged in?
I can check another post later after publishing it, but can't log out and see the preview here (sort of a catch 22.)
If this is a validation error only for logged in members with permission to edit, can you fix that so I can stop worrying about it?
Thank you