PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Inserting a wordpress page into a form

  1. divyabh
    Member

    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

    Posted 12 years ago on Thursday January 3, 2013 | Permalink
  2. David Peralty

    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?

    Posted 12 years ago on Thursday January 3, 2013 | Permalink
  3. divyabh
    Member

    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.

    Posted 12 years ago on Friday January 4, 2013 | Permalink
  4. David Peralty

    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.

    Posted 12 years ago on Friday January 4, 2013 | Permalink
  5. 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.

    Posted 12 years ago on Friday January 4, 2013 | Permalink