<?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: How did they do this using GF? Adding City data in the post header.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header</link>
		<description>Gravity Support Forums Topic: How did they do this using GF? Adding City data in the post header.</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:28:19 +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/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18720</link>
			<pubDate>Wed, 16 Feb 2011 17:39:23 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think there is a disconnect between what you are trying to do and how you are supposed to be doing this.  &#60;/p&#62;
&#60;p&#62;I'm not sure what you are referring to by gf_field id(2). You shouldn't be writing any code that interacts with Gravity Forms itself.  What are you referring to as far value box? I'm not 100% sure what you are referring to.&#60;/p&#62;
&#60;p&#62;To populate a custom field value you can do everything from the Gravity Forms form builder itself and then customizing your theme to display the custom/post meta field.&#60;/p&#62;
&#60;p&#62;If you want a field on your form that populated this location as a custom field then you need to...&#60;/p&#62;
&#60;p&#62;- Edit your form&#60;br /&#62;
- Add a Post Custom Field to your form&#60;br /&#62;
- Edit this Post Custom Field&#60;br /&#62;
- Select &#34;New&#34; under Custom Field Name&#60;br /&#62;
- Type &#34;location&#34; in the custom field name input box&#60;/p&#62;
&#60;p&#62;See this screenshot:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://grab.by/8Zxq&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/8Zxq&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is all you have to do to configure that Post Custom Field to save it's value using the key &#34;location&#34; in the post meta table.&#60;/p&#62;
&#60;p&#62;The value that will be stored in that custom field will be whatever the user enters when submitting the form.  &#60;/p&#62;
&#60;p&#62;Keep in mind that to create a post you also need to have a Post Title and Post Body field on your form.  Those have to be present in order for the post to be created.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ditokazi on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18716</link>
			<pubDate>Wed, 16 Feb 2011 16:55:29 +0000</pubDate>
			<dc:creator>ditokazi</dc:creator>
			<guid isPermaLink="false">18716@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok I am almost there. I managed to used custom fields to get the location to show up but the only issue is that my location stays the same for every post because I have&#60;br /&#62;
my key as &#34;location&#34; and my value as &#34;Sydney&#34; my question is what is the code to put into the value box to pull  gravity form values? is it something like gf_field id (2)  ?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18703</link>
			<pubDate>Wed, 16 Feb 2011 15:03:00 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18703@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, when I refer to configuring your theme I am referring to the implementation of custom fields within the theme file for your posts.  You were on the right track with this documentation: &#60;a href=&#34;http://codex.wordpress.org/Custom_Fields&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Custom_Fields&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is what you are going to have to learn, how to implement and use WordPress custom fields.  That is what Press75 is using for the Location information and other non-post body content that was implemented in that Job theme.  That is what you would have to implement in order to accomplish what you want to do.&#60;/p&#62;
&#60;p&#62;So you are going to have to learn how to implement and use Custom Fields, also referred to as Post Meta.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ditokazi on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18700</link>
			<pubDate>Wed, 16 Feb 2011 14:53:43 +0000</pubDate>
			<dc:creator>ditokazi</dc:creator>
			<guid isPermaLink="false">18700@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello thanks for your reply, &#60;/p&#62;
&#60;p&#62;SO when you say configure my theme are you referring to the function.php? can you lead me in the direction of the type of  code formating  I can use?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18698</link>
			<pubDate>Wed, 16 Feb 2011 14:45:23 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18698@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;First off you can't use internal function calls to display entry data in your themes functions.php file.  So using get_gf_field_value($form_id, $field_id) isn't going to work.  That is for entry data, not post data.&#60;/p&#62;
&#60;p&#62;Secondly the Press75 site uses Custom Fields for these data.&#60;/p&#62;
&#60;p&#62;They have a Gravity Form that is configured to create a WordPress post.  In order to do this you need to use Post Fields.  Post Fields are the only field types that will create a WordPress Post from a form.  &#60;/p&#62;
&#60;p&#62;If you want a field for location you would have to use a Post Custom Field and give it a name of location (the name is the key when configuring the custom field) and then in your theme you would have to display the custom field with the key location.&#60;/p&#62;
&#60;p&#62;This is how Press75 is doing things with their job post theme.  They use Gravity Forms with Post Custom Fields and store the data in post meta and then their theme is configured to display that custom field.&#60;/p&#62;
&#60;p&#62;So if you are creating a post using a Gravity Form you need to make sure you are using the Post Fields.&#60;/p&#62;
&#60;p&#62;- Post Title to create the title of the post&#60;br /&#62;
- Post Body to create the content of the post&#60;br /&#62;
- Post Custom Fields to create custom fields&#60;/p&#62;
&#60;p&#62;If you want to display the custom field values in your theme you have to then configure your theme to show the custom field values.  It doesn't do this automatically, you have to configure your theme to output this information.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ditokazi on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18693</link>
			<pubDate>Wed, 16 Feb 2011 14:27:40 +0000</pubDate>
			<dc:creator>ditokazi</dc:creator>
			<guid isPermaLink="false">18693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I also want to add, I don't want this information in the body I want it in the header as shown , so I don't think using post body template will work for me. I also looked at the &#60;a href=&#34;http://codex.wordpress.org/Custom_Fields&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Custom_Fields&#60;/a&#62;  and I tried adding &#60;/p&#62;
&#60;p&#62;location as my key, but I didnt know what to add as the value...would it be simply location?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ditokazi on "How did they do this using GF? Adding City data in the post header."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-did-they-do-this-using-gf-adding-city-data-in-the-post-header#post-18691</link>
			<pubDate>Wed, 16 Feb 2011 14:19:10 +0000</pubDate>
			<dc:creator>ditokazi</dc:creator>
			<guid isPermaLink="false">18691@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Press75 who is using GF has managed to get the field input value &#34;Location&#34; displayed in their post title see here &#60;a href=&#34;http://www.press75.com/themes/tapp-jobs/just-a-sample-job-post-with-a-long-title&#34; rel=&#34;nofollow&#34;&#62;http://www.press75.com/themes/tapp-jobs/just-a-sample-job-post-with-a-long-title&#60;/a&#62; it says Phoenix &#60;/p&#62;
&#60;p&#62;Now I v'e tried the following using the same theme &#60;/p&#62;
&#60;p&#62;in my function.php I 've added &#60;/p&#62;
&#60;p&#62;get_gf_field_value($form_id, $field_id)&#60;/p&#62;
&#60;p&#62;and in my Single.php I've added&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Location:&#60;/strong&#62;&#38;lt;?php echo get_gf_field_value(1,1); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;1 being my form id and 1 being my input value for location.&#60;/p&#62;
&#60;p&#62;but nothing shows up in my post. I am missing code in my function.php?  am I not calling it properly?&#60;/p&#62;
&#60;p&#62;I would appreciate any help on this, I've read alot of post but I guess I can't wrap my mind around it to get it right.&#60;/p&#62;
&#60;p&#62;thanks for the great script.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
