<?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: Create a post with .txt files</title>
		<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files</link>
		<description>Gravity Support Forums Topic: Create a post with .txt files</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 07:25:18 +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/create-a-post-with-txt-files" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Create a post with .txt files"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files#post-87928</link>
			<pubDate>Tue, 06 Nov 2012 09:52:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">87928@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no custom design service, but we do have a job board, and there are other WordPress-related job sites out there.  You can post a job here if you like:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/forum/job-board&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/forum/job-board&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;We can give you pointers along the way if you decide to try this yourself.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>beetle8 on "Create a post with .txt files"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files#post-87694</link>
			<pubDate>Mon, 05 Nov 2012 19:30:08 +0000</pubDate>
			<dc:creator>beetle8</dc:creator>
			<guid isPermaLink="false">87694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a system in place, be it support help while I code this myself, or custom design service?&#60;br /&#62;
Based on what you said above, it seems as though this can be done fairly easily.&#60;/p&#62;
&#60;p&#62;Form:&#60;br /&#62;
enter -&#38;gt; title&#60;br /&#62;
enter -&#38;gt; info&#60;br /&#62;
enter -&#38;gt; date&#60;br /&#62;
enter -&#38;gt; type 1&#60;br /&#62;
upload 1 - text file&#60;br /&#62;
enter-&#38;gt; type 2&#60;br /&#62;
upload 2 - text file&#60;br /&#62;
enter-&#38;gt; type 3&#60;br /&#62;
upload 3 - text file&#60;/p&#62;
&#60;p&#62;result = Post&#60;br /&#62;
Title&#60;br /&#62;
info&#60;br /&#62;
date&#60;br /&#62;
&#38;lt;----more----&#38;gt;&#60;br /&#62;
Standard content for every post&#60;br /&#62;
txt file 1&#60;br /&#62;
Standard content for every post&#60;br /&#62;
txt file 2&#60;br /&#62;
Standard content for every post&#60;br /&#62;
txt file 3&#60;br /&#62;
Standard content for every post
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Create a post with .txt files"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files#post-87497</link>
			<pubDate>Mon, 05 Nov 2012 07:15:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">87497@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;[I edited or deleted some replies after I figured out what you meant by &#60;strong&#62;pre&#60;/strong&#62; tags]&#60;/p&#62;
&#60;p&#62;I don't see the issue with using the &#38;lt; pre &#38;gt; tag, as it seems to be the most useful way to retain all that whitespace and column alignment.  You could add the &#38;lt; pre &#38;gt; tag to your content template for the post body (in Gravity Forms) or you could use a special page template for the posts created by Gravity Forms, and add the &#38;lt; pre &#38;gt; tags there, before and after where this text will be inserted.&#60;/p&#62;
&#60;p&#62;I think I would create a form to capture the title and description (post title and post body fields) then add a file upload dialog (from the Advanced form fields.)  Then, after the form is submitted and the post is created, use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;gform_after_submission&#60;/a&#62; hook to revise the post which was just created, and insert both the description and the text file into the post body.  The example on the documentation page shows updating a post, like you need to do.  Replace the example fields there with your fields, and include the content of the text file which was uploaded, in the post body.&#60;/p&#62;
&#60;p&#62;As for the &#38;lt;!-- more --&#38;gt; tag, I'm not sure how you will know where it goes in every upload, but if there is a format which is repeated in this uploaded text file (like always 3 blank lines or something) you can use one of the PHP string functions to read the text file and insert the more tag based on something searched for and found in the text file.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://www.google.com/search?q=php+str&#34; rel=&#34;nofollow&#34;&#62;https://www.google.com/search?q=php+str&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It can all be done with Gravity Forms but it will require a bit of PHP and some creative thinking.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>beetle8 on "Create a post with .txt files"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files#post-86609</link>
			<pubDate>Fri, 02 Nov 2012 09:15:12 +0000</pubDate>
			<dc:creator>beetle8</dc:creator>
			<guid isPermaLink="false">86609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When I say it needs to retain its formatting, I'm referring to the spacing that comes through as white space and omitted without the &#34;pre&#34; tags. here is a link to a typical file. &#60;a href=&#34;http://www.millenniumrunning.com/wp-content/uploads/2012/11/Overall.txt&#34; rel=&#34;nofollow&#34;&#62;http://www.millenniumrunning.com/wp-content/uploads/2012/11/Overall.txt&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>beetle8 on "Create a post with .txt files"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/create-a-post-with-txt-files#post-86586</link>
			<pubDate>Fri, 02 Nov 2012 07:56:27 +0000</pubDate>
			<dc:creator>beetle8</dc:creator>
			<guid isPermaLink="false">86586@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking for a very specific repeatable post creation process.&#60;br /&#62;
From the front end, add title, description, and upload .txt files that become the post.&#60;br /&#62;
There would possibly be multiple .txt uploads, each occupying a different location in the post.&#60;br /&#62;
the .txt content would need to maintain formatting currently done with&#60;br /&#62;
&#38;lt; pre &#38;gt; tags.&#60;/p&#62;
&#60;p&#62;An example of the desired result can be seen here. &#60;a href=&#34;http://www.millenniumrunning.com/nh-10-miler-2012/1583&#34; rel=&#34;nofollow&#34;&#62;http://www.millenniumrunning.com/nh-10-miler-2012/1583&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;in that example Overall Results • Relay Results • Awards would each be a separate .txt file upload.&#60;br /&#62;
I'd also like to define where the &#38;lt;!--more--&#38;gt; tag resides in the post, and pre-fill some of the contact info above the uploaded fields.&#60;/p&#62;
&#60;p&#62;Currently this is accomplished by me pre-building posts and having others paste in &#34;paste here&#34; spots between the &#38;lt; pre &#38;gt; tags, obviously not the best scenario for several reasons.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
