<?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: Custom Fields GF or functions.php?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp</link>
		<description>Gravity Support Forums Topic: Custom Fields GF or functions.php?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:24:28 +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/custom-fields-gf-or-functionsphp" rel="self" type="application/rss+xml" />

		<item>
			<title>martcol on "Custom Fields GF or functions.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp#post-200787</link>
			<pubDate>Mon, 08 Apr 2013 03:49:31 +0000</pubDate>
			<dc:creator>martcol</dc:creator>
			<guid isPermaLink="false">200787@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry about this.  Those two snippets of code work.  I'm embarrassed to say that Type Town was the value and that I had entered it in a test submission.  doh!&#60;/p&#62;
&#60;p&#62;If possible, I would still like to hear about the pros and cons of a GF custom field and a coded one.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>martcol on "Custom Fields GF or functions.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp#post-200199</link>
			<pubDate>Sun, 07 Apr 2013 16:52:02 +0000</pubDate>
			<dc:creator>martcol</dc:creator>
			<guid isPermaLink="false">200199@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Again,&#60;/p&#62;
&#60;p&#62;I still would like to know if there is any benefit at all in using a custom field generated by a form or one added using functions.php&#60;/p&#62;
&#60;p&#62;In the mean time, I am now trying to call a custom field and neither of these two lines of code do it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo get_post_meta($post-&#38;gt;ID, &#38;#39;towns&#38;#39;, true);

		 $key=&#38;quot;towns&#38;quot;; echo get_post_meta($post-&#38;gt;ID, $key, true);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Each of those returns, Type Town&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>martcol on "Custom Fields GF or functions.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp#post-196248</link>
			<pubDate>Thu, 04 Apr 2013 03:50:37 +0000</pubDate>
			<dc:creator>martcol</dc:creator>
			<guid isPermaLink="false">196248@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh, sorry,&#60;/p&#62;
&#60;p&#62;I have a form that submits a custom post type called listing.  If I want to capture the organisation's address I can use an address field and then a create custom template to pull the information into the post.&#60;/p&#62;
&#60;p&#62;Or now I am thinking that it would be better to use a post field, custom field to create a custom field in the post and although I can't do it yet, I think that might give a bit more control about how the submitted data can be used.&#60;/p&#62;
&#60;p&#62;So now I can see that I can add my own custom field and meta box in WordPress which is the trickiest way for me and my question is what is the difference between using a GF Post Field, Custom Field over a WordPress custom built meta box?&#60;/p&#62;
&#60;p&#62;I hope I got the terminology correct there.  I haven't implemented this yet.  The reason I am asking is that if there is no advantage in coding a custom field meta box then I'll stick with the GF model.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Martin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Custom Fields GF or functions.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp#post-194684</link>
			<pubDate>Tue, 02 Apr 2013 18:06:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">194684@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure I understand the question. Can you tell us what information you want to capture in your form, and where you want to store it?  We can help you better with that information.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>martcol on "Custom Fields GF or functions.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/custom-fields-gf-or-functionsphp#post-194529</link>
			<pubDate>Tue, 02 Apr 2013 14:07:19 +0000</pubDate>
			<dc:creator>martcol</dc:creator>
			<guid isPermaLink="false">194529@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can see that it is possible to add a custom field to a custom post type if using GF for user submitted content.  My question is what are the pros and cons of that over adding one in functions.php  I can already see that adding meta boxes through functions.php is way much more coding (a little above my head) but I would do that if it was better than adding them through a form.&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Martin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
