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.

Retrieve formatted post from dynamic population

  1. I am using dynamic population to return to a field. It works fine, but I would like to return the contents of a post, WITH html formatting (instead of hard coding the output in functions.php).

    I was successful in returning the post contents with this:

    add_filter('gform_field_value_we_contract_terms', 'we_contract_terms_population');
    function we_contract_terms_population($value){
    	$post_id = 3451;
    	$queried_post = get_post($post_id);
    	return $queried_post->post_content;
    }

    But that returns it with the html markup ( such as ol, li)

    Is there a way to return it with the html post formatting intact?
    Thanks!

    Posted 10 years ago on Saturday March 17, 2012 | Permalink
  2. Any ideas on this?

    Posted 10 years ago on Wednesday March 21, 2012 | Permalink
  3. dose this work if for example your using a page brake and want a preview of a post all fields into an html block? if not do you know how?

    Posted 10 years ago on Wednesday March 21, 2012 | Permalink