<?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 form to submit posts - custom fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-form-to-submit-posts-custom-fields</link>
		<description>Gravity Support Forums Topic: Using form to submit posts - custom fields</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:26:12 +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-form-to-submit-posts-custom-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>madebyeliza on "Using form to submit posts - custom fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-form-to-submit-posts-custom-fields#post-29763</link>
			<pubDate>Tue, 12 Jul 2011 06:10:10 +0000</pubDate>
			<dc:creator>madebyeliza</dc:creator>
			<guid isPermaLink="false">29763@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris! That was just what I was looking for!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using form to submit posts - custom fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-form-to-submit-posts-custom-fields#post-29757</link>
			<pubDate>Tue, 12 Jul 2011 00:59:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">29757@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just tested with a couple other oEmbed enabled sites that are whitelisted by WordPress, and they work as well.   Awesome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Using form to submit posts - custom fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-form-to-submit-posts-custom-fields#post-29756</link>
			<pubDate>Tue, 12 Jul 2011 00:52:41 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">29756@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;strong&#62;You can do this&#60;/strong&#62;.  Don't have them enter the embed code though.  Just have them enter the YouTube URL.  Then in your Content Template for the post body, insert the custom field where they entered the YouTube URL (before or after the other form fields they submitted, however you want it laid out.)  &#60;/p&#62;
&#60;p&#62;In your admin, under Options &#38;gt; Media (&#60;a href=&#34;http://example.com/wp-admin/options-media.php&#34; rel=&#34;nofollow&#34;&#62;http://example.com/wp-admin/options-media.php&#60;/a&#62;) there is a section (mid-way down) called &#34;Embeds&#34;:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Auto-embeds:	When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube. When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Make sure you check that.  In WordPress since 2.9, they use oEmbed to &#34;auto-embed&#34; YouTube and Flickr and all sorts of things - all you need to insert is the URL.  You can read more about it &#60;a href=&#34;http://codex.wordpress.org/Embeds&#34; title=&#34;WordPress oEmbed&#34; rel=&#34;nofollow&#34;&#62;here&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Simple, sample form:&#60;br /&#62;
&#60;a href=&#34;http://guitar.chrishajer.com/2011/07/11/submit-a-youtube-video-to-our-contest/&#34; rel=&#34;nofollow&#34;&#62;http://guitar.chrishajer.com/2011/07/11/submit-a-youtube-video-to-our-contest/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Enter a YouTube URL there and it should work fine.  I have the post set to publish automatically.  You'll have to go to the home page of the site to see your post.&#60;/p&#62;
&#60;p&#62;For my post body, I have only this:&#60;br /&#62;
&#60;code&#62;[embed]{YouTube:7}[/embed]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The embed shortcode is optional, but it lets you do other things (like specify width and height if you want to.)  I tried without wrapping my custom field in the shortcode, in the content template, and it worked that way on my site as well.  To be safe, the embed shortcode cannot hurt you.&#60;/p&#62;
&#60;p&#62;So, yes you can do this, without a doubt.   You might want to do some sort of validation on the YouTube URL and have the posts made as drafts, but as you can see in this simple example, it works fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>madebyeliza on "Using form to submit posts - custom fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-form-to-submit-posts-custom-fields#post-29745</link>
			<pubDate>Mon, 11 Jul 2011 20:46:40 +0000</pubDate>
			<dc:creator>madebyeliza</dc:creator>
			<guid isPermaLink="false">29745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am in the process of setting up a form which will allow users to make an entry to the site. I am wanting them to be able to enter youtube embed code - currently this is being placed in a custom field, but I was wondering if it were possible to have this so it posted into the post body?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
