<?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: &#34;Address&#34; as a post custom field type</title>
		<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type</link>
		<description>Gravity Support Forums Topic: &quot;Address&quot; as a post custom field type</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:10:53 +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/address-as-a-post-custom-field-type" rel="self" type="application/rss+xml" />

		<item>
			<title>hypenotic on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-40056</link>
			<pubDate>Fri, 04 Nov 2011 13:20:07 +0000</pubDate>
			<dc:creator>hypenotic</dc:creator>
			<guid isPermaLink="false">40056@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The code from Cancado actually didnt work for me. After modifying the code a bit this finally worked for me.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//NOTE: CHANGE 10 (in gform_post_submission_1) TO YOUR ACTUAL FORM ID
add_action(&#38;quot;gform_post_submission_1&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($entry, $form){

    //NOTE: CHANGE THIS VALUE TO YOUR ACTUAL ADDRESS FIELD ID
    $address_field_id = 11;

    $streetaddress = $entry[6];
    $town = $entry[7];
    $province = $entry[8];
    $postalcode = $entry[9];
    $country = $entry[10];

    $geo_address = &#38;quot;{$streetaddress}, {$town}, {$province}, {$postalcode}, {$country}&#38;quot;;

    add_post_meta($entry[&#38;quot;post_id&#38;quot;], &#38;quot;geo_address&#38;quot;, $geo_address);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>adcSTUDIO on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-15884</link>
			<pubDate>Mon, 10 Jan 2011 16:35:10 +0000</pubDate>
			<dc:creator>adcSTUDIO</dc:creator>
			<guid isPermaLink="false">15884@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, I see that it is base off the &#34;name&#34; attribute of each input element...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adcSTUDIO on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-15882</link>
			<pubDate>Mon, 10 Jan 2011 16:23:34 +0000</pubDate>
			<dc:creator>adcSTUDIO</dc:creator>
			<guid isPermaLink="false">15882@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It's not mentioned many places (that I could find) so confirming here:&#60;/p&#62;
&#60;p&#62;You find the Field ID by looking at the form on a page, and then finding the LI ID? &#60;/p&#62;
&#60;p&#62;For example: &#60;code&#62;&#38;lt;div id=&#38;quot;field_2_5&#38;quot;&#38;gt;&#60;/code&#62; would be for Field '5' in Form '2' and &#60;code&#62;&#38;lt;input id=&#38;quot;input_2_5_1&#38;quot;&#38;gt;&#60;/code&#62; would be the &#34;Street Address&#34; (first input of Field '5' in Form '2')?&#60;/p&#62;
&#60;p&#62;And so to pull the value from &#60;code&#62;$entry&#60;/code&#62; where &#34;input_2_5_1&#34; matches &#60;code&#62;gform_post_submission_2&#60;/code&#62; and &#60;code&#62;$entry[&#38;quot;5.1&#38;quot;]&#60;/code&#62;, correct?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-12422</link>
			<pubDate>Wed, 10 Nov 2010 15:54:42 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">12422@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can accomplish that functionality using a hook.&#60;br /&#62;
Place the following code snippet in your theme's functions.php. Make sure you replace the form id and field id variables. See notes below.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//NOTE: CHANGE 10 (in gform_post_submission_10) TO YOUR ACTUAL FORM ID
add_action(&#38;quot;gform_post_submission_10&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($entry, $form){

    //NOTE: CHANGE THIS VALUE TO YOUR ACTUAL ADDRESS FIELD ID
    $address_field_id = 5;

    $street = $entry[$address_field_id . &#38;quot;.1&#38;quot;];
    $street2 = $entry[$address_field_id . &#38;quot;.2&#38;quot;];
    $city = $entry[$address_field_id . &#38;quot;.3&#38;quot;];
    $state = $entry[$address_field_id . &#38;quot;.4&#38;quot;];
    $zip = $entry[$address_field_id . &#38;quot;.5&#38;quot;];
    $country = $entry[$address_field_id . &#38;quot;.6&#38;quot;];

    $address = &#38;quot;{$street} {$street2} {$city}, {$state} {$zip} {$country}&#38;quot;;

    add_post_meta($entry[&#38;quot;post_id&#38;quot;], &#38;quot;address&#38;quot;, $address);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>boumart on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-12399</link>
			<pubDate>Wed, 10 Nov 2010 06:44:33 +0000</pubDate>
			<dc:creator>boumart</dc:creator>
			<guid isPermaLink="false">12399@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;I 'm looking for the same, i'm quite sure you can't !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-12393</link>
			<pubDate>Wed, 10 Nov 2010 02:24:40 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">12393@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, I just found this post: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/combining-fields&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/combining-fields&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Which is basically exactly what I need to do...Combine several GF custom fields into one. &#60;/p&#62;
&#60;p&#62;The link shown above involves combining dates and times. In my case it involves combining address fields (address, city, state, zip) into one custom field called &#34;address&#34;. &#60;/p&#62;
&#60;p&#62;Could anyone lead me in the right direction on how to combine these fields into a single custom field?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "&#34;Address&#34; as a post custom field type"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/address-as-a-post-custom-field-type#post-12392</link>
			<pubDate>Wed, 10 Nov 2010 01:04:37 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">12392@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would like to request the &#34;address&#34; field be available as an option for the post custom field types.&#60;/p&#62;
&#60;p&#62;I am trying to parse Google maps on each post and need the full address in a single custom field.  I haven't found a way to combine multiple custom fields (address, city, state, zip) into one field.&#60;/p&#62;
&#60;p&#62;Any chance of this happening in the next release?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
