<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Using the form to enable users to submit content</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content</link>
		<description>Gravity Support Forums Topic: Using the form to enable users to submit content</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:13:41 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/using-the-form-to-enable-users-to-submit-content" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31449</link>
			<pubDate>Tue, 02 Aug 2011 13:15:06 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31449@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the update.  Good luck.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ycb on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31447</link>
			<pubDate>Tue, 02 Aug 2011 13:11:46 +0000</pubDate>
			<dc:creator>ycb</dc:creator>
			<guid isPermaLink="false">31447@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Chris, thanks again!  It sounds like the auto formatting will correctly be applied in many/most cases, and if I want to apply the autop filter to the gform_post_data hook I can (but it most likely won't fix the problem).  So we'll just have to manually insert line breaks in the case that the source text does not have formatting that results in the correct output.  Have a great day!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31231</link>
			<pubDate>Sat, 30 Jul 2011 00:43:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31231@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To answer the original question, you would apply the wpautop function using the &#60;strong&#62;gform_post_data&#60;/strong&#62; hook, documented here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_data&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_data&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;However, my understanding of the &#60;a href=&#34;http://ma.tt/scripts/autop/&#34; rel=&#34;nofollow&#34;&#62;wpautop function&#60;/a&#62; makes me think it would not help in this case.  If the text you pasted in DID have blank lines between carriage returns, then it would convert those to paragraphs rather than two &#60;strong&#62;br&#60;/strong&#62; tags the way it's done now.  That might be more correct semantically, but it doesn't solve your problem.  The input text from the Fox News article just has a new line at the end of each paragraph, not a blank line in between paragraphs, at least when I pasted it into a text editor. &#60;/p&#62;
&#60;p&#62;A lot of this is going to depend on where it's being copied and pasted from.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31229</link>
			<pubDate>Fri, 29 Jul 2011 23:51:14 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31229@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@ycb, I think it has to do with the source of the text you're pasting in.  I've seen this before, commonly with WikiPedia articles.  Nothing particular about them, I've just seen it there.&#60;/p&#62;
&#60;p&#62;If you copy and paste from that Fox News page into something like notepad (or any plain text editor) you might see that there is just a new line at the end of each paragraph, not a new line and a blank line.   In the plain text I used, There was a new line and then a blank line.  Gravity Forms added a &#38;lt; br &#38;gt;  for the new line and a &#38;lt; br &#38;gt; for the blank line.  That's why it looked like paragraphs on my site.&#60;/p&#62;
&#60;p&#62;I did two tests using my form and your Fox News content:&#60;/p&#62;
&#60;p&#62;&#60;a title=&#34;the good result&#34; href=&#34;http://gravity.chrishajer.com/2011/07/29/this-will-be-good/&#34; rel=&#34;nofollow&#34;&#62;Good&#60;/a&#62;&#60;br /&#62;
&#60;a title=&#34;the bad result&#34; href=&#34;http://gravity.chrishajer.com/2011/07/29/this-will-be-bad/&#34; rel=&#34;nofollow&#34;&#62;Bad&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The only difference was that I added a blank line after each carriage return (or end of line) in the Fox News content.  What Gravity Forms does to the content that is submitted is dependent on how the content is formatted.  When there are no blank lines in the pasted source, it won't look like paragraphs with space between them on your site.&#60;/p&#62;
&#60;p&#62;So, knowing that, I think it gets us back to your original question :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ycb on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31224</link>
			<pubDate>Fri, 29 Jul 2011 20:28:59 +0000</pubDate>
			<dc:creator>ycb</dc:creator>
			<guid isPermaLink="false">31224@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Chris&#60;/p&#62;
&#60;p&#62;Thanks for your prompt and thorough response.  I tried your form -- and got the correct result.  But we're still having problems.  To output, I'm using a function to grab the first image, then the_content, then the custom field (in single.php):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;img class=&#38;quot;alignright&#38;quot; src=&#38;quot;&#38;lt;?php echo catch_that_image() ?&#38;gt;&#38;quot; alt=&#38;quot;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot; /&#38;gt;

&#38;lt;?php the_content(); ?&#38;gt;

	&#38;lt;?php $url = get_post_meta($post-&#38;gt;ID, &#38;#39;submit_url&#38;#39;, true); ?&#38;gt;

&#38;lt;p&#38;gt;&#38;lt;b&#38;gt;Read the Original Article:  &#38;lt;a href=&#38;quot;&#38;lt;?php echo $url; ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php echo $url; ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/b&#38;gt;&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please see the results of a user submitted form here:   &#60;a href=&#34;http://soulinthemachine.com/2011/07/planetary-nebula/&#34; rel=&#34;nofollow&#34;&#62;http://soulinthemachine.com/2011/07/planetary-nebula/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;compared to the correct output here:  &#60;a href=&#34;http://gravity.chrishajer.com/category/stories/&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/category/stories/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;( copy/pasted from here  &#60;a href=&#34;http://www.myfoxhouston.com/dpps/dpg_original/new-planetary-nebula-found-by-amateur-astronomer-dpgoh-20110728-ch_14326206&#34; rel=&#34;nofollow&#34;&#62;http://www.myfoxhouston.com/dpps/dpg_original/new-planetary-nebula-found-by-amateur-astronomer-dpgoh-20110728-ch_14326206&#60;/a&#62; )&#60;/p&#62;
&#60;p&#62;Any idea why our line breaks don't convert to markup?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31181</link>
			<pubDate>Fri, 29 Jul 2011 01:39:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31181@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@ycb, something is going on with your form.  The default is to add  tags where line breaks are in the form submission.&#60;/p&#62;
&#60;p&#62;I posted &#60;a href=&#34;http://pastie.org/2288227&#34; title=&#34;these are the actual five paragraphs I submitted&#34; rel=&#34;nofollow&#34;&#62;5 paragraphs of plain text&#60;/a&#62; to &#60;a title=&#34;test form to see how paragraphs are preserved in post content&#34; href=&#34;http://gravity.chrishajer.com/test-line-breaks/&#34; rel=&#34;nofollow&#34;&#62;this form&#60;/a&#62; and you can &#60;a title=&#34;the post that was created added br in place of blank lines&#34; href=&#34;http://gravity.chrishajer.com/2011/07/29/five-paragraphs/&#34; rel=&#34;nofollow&#34;&#62;see the result here&#60;/a&#62;.  The blank lines were converted to markup just fine.  View the source.&#60;/p&#62;
&#60;p&#62;Please feel free to submit a test and see how it works.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ycb on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-31168</link>
			<pubDate>Thu, 28 Jul 2011 20:32:59 +0000</pubDate>
			<dc:creator>ycb</dc:creator>
			<guid isPermaLink="false">31168@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@ Chris:&#60;/p&#62;
&#60;p&#62;I have a site with user submitted content as well and am using the content template successfully.  The issue I am having is in formatting the content -- when people enter blocks of text, the line breaks disappear and the output is a large block of text.  Since the content is one form field, I can't add the required formatting in the content template.&#60;/p&#62;
&#60;p&#62;Ex:  someone submits&#60;/p&#62;
&#60;p&#62;paragraph 1&#60;/p&#62;
&#60;p&#62;paragraph 2&#60;/p&#62;
&#60;p&#62;paragraph 3&#60;/p&#62;
&#60;p&#62;The result is:&#60;/p&#62;
&#60;p&#62;paragraph 1 paragraph 2 paragraph 3&#60;/p&#62;
&#60;p&#62;And I can't fix this b/c all I can do with the content template is:&#60;/p&#62;
&#60;p&#62;&#38;lt;p&#38;gt;[content]&#38;lt;/p&#38;gt; &#60;/p&#62;
&#60;p&#62;which gets me:  &#60;/p&#62;
&#60;p&#62;&#38;lt;p&#38;gt;paragraph 1 paragraph 2 paragraph 3&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;There is a WordPress filter called autop to convert line breaks to br and p tags.  How can we run this filter on the contents of the form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nicole on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-30197</link>
			<pubDate>Sun, 17 Jul 2011 00:13:41 +0000</pubDate>
			<dc:creator>nicole</dc:creator>
			<guid isPermaLink="false">30197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have expanded the form to include additional optional fields too that will not always be included and are not required. Is there anywhere I can read up on how to accomplish this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-30192</link>
			<pubDate>Sat, 16 Jul 2011 18:01:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">30192@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I thought all your fields were required though?&#60;/p&#62;
&#60;p&#62;I don't know if there's a way in the content template to say &#60;strong&#62;If no ingredients are submitted, don't show the &#34;Ingredients&#34; heading.&#60;/strong&#62;  Is that what you're trying to do?  To prevent the problem of a section of the post being blank (just a title, no content)?&#60;/p&#62;
&#60;p&#62;You could probably do it differently by using custom fields and then modifying your post template (or creating a post template for recipes specifically) but it's more complicated than what we've accomplished here.  It can be done though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nicole on "Using the form to enable users to submit content"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-the-form-to-enable-users-to-submit-content#post-30190</link>
			<pubDate>Sat, 16 Jul 2011 16:40:36 +0000</pubDate>
			<dc:creator>nicole</dc:creator>
			<guid isPermaLink="false">30190@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you very much. That was very helpful.  If someone leaves a field blank then I would like the title of that field not to appear on the post. How do I do that?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
