Hi,
I recently bought gravity forms and its great!. I am trying to embedd the contents of a wordpress page into the form. Their is something called embed_post in the html field. how does that work? can I get this done or not?
Divyabh
Hi,
I recently bought gravity forms and its great!. I am trying to embedd the contents of a wordpress page into the form. Their is something called embed_post in the html field. how does that work? can I get this done or not?
Divyabh
I am not sure what you mean by the embed_post in the HTML field. You can't pull a WordPress post into a Gravity Forms field without using PHP to do so using one of our hooks. Can you give me more information about what you are looking to do and why?
If you select the standard fields - HTML. within that field in the Content section, there is a drop down. One of the items in the drop down is embed Post/ Page ID. what does this do and how do you use this?
Can you share php code for pulling a wordpress post/ page into Gravity forms.
This just takes the Post/Page ID and automatically adds it to the HTML field. So if it is post lorem-ipsum it adds lorem-ipsum to the content of the HTML block, not the actually details of the post, just its ID.
You can use a shortcode in an HTML block in your form, to pull in a post if you want. I used this plugin: http://wordpress.org/extend/plugins/ggis-inline-post/other_notes/ It's old and out of date but it is working with the latest Gravity Forms and WordPress.
I inserted this into an HTML block in my form:
### Begin inclusion of post 518 ###
[ggisinlinepost id="518"]
### End inclusion of post 518 ###
You can see the original post # 518 here:
http://gravity.chrishajer.com/2011/12/26/fake-news-story/
You can see how that post is now included inside this Gravity Form:
http://gravity.chrishajer.com/include-a-post-within-a-form/
Does that accomplish what you're looking to do? There are a few options you can use with the [ggisinlinepost] shortcode to suppress the meta information, the post title, etc.