<?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: Change City label to Suburb</title>
		<link>https://legacy.forums.gravityhelp.com/topic/change-city-label-to-suburb</link>
		<description>Gravity Support Forums Topic: Change City label to Suburb</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:48:42 +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/change-city-label-to-suburb" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Change City label to Suburb"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-city-label-to-suburb#post-304152</link>
			<pubDate>Wed, 05 Jun 2013 14:50:03 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">304152@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When you copy a function from the documentation you don't need to copy the opening &#60;code&#62;&#38;lt;?php&#60;/code&#62; and &#60;code&#62;?&#38;gt;&#60;/code&#62; closing php tags as they are usually already present at the top and bottom of functions files, so your file should look more like this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/**
* @package WordPress
* @subpackage Default_Theme
*/

if ( function_exists(&#38;#39;register_sidebar&#38;#39;) ) {
register_sidebar(array(
&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;li id=&#38;quot;%1$s&#38;quot; class=&#38;quot;widget %2$s&#38;quot;&#38;gt;&#38;#39;,
&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,
&#38;#39;before_title&#38;#39; =&#38;gt; &#38;#39;&#38;lt;h2 class=&#38;quot;widgettitle&#38;quot;&#38;gt;&#38;#39;,
&#38;#39;after_title&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/h2&#38;gt;&#38;#39;,
));
}

add_filter(&#38;quot;gform_address_types&#38;quot;, &#38;quot;aus_address&#38;quot;, 10, 2);
function aus_address($address_types, $form_id){
$address_types[&#38;quot;australia&#38;quot;] = array(
&#38;quot;label&#38;quot; =&#38;gt; &#38;quot;Australia&#38;quot;,
&#38;quot;country&#38;quot; =&#38;gt; &#38;quot;Australia&#38;quot;,
&#38;quot;zip_label&#38;quot; =&#38;gt; &#38;quot;Postcode&#38;quot;,
&#38;quot;state_label&#38;quot; =&#38;gt; &#38;quot;State&#38;quot;,
&#38;quot;states&#38;quot; =&#38;gt; array(&#38;quot;NT&#38;quot;=&#38;gt;&#38;quot;NT&#38;quot;, &#38;quot;ACT&#38;quot;=&#38;gt;&#38;quot;ACT&#38;quot;,&#38;quot;NSW&#38;quot;=&#38;gt;&#38;quot;NSW&#38;quot;, &#38;quot;QLD&#38;quot;=&#38;gt;&#38;quot;QLD&#38;quot;, &#38;quot;VIC&#38;quot;=&#38;gt;&#38;quot;VIC&#38;quot;, &#38;quot;WA&#38;quot;=&#38;gt;&#38;quot;WA&#38;quot;,&#38;quot;SA&#38;quot;=&#38;gt;&#38;quot;SA&#38;quot;, &#38;quot;TAS&#38;quot; =&#38;gt; &#38;quot;TAS&#38;quot;)
);
return $address_types;
}

add_filter(&#38;quot;gform_address_city&#38;quot;, &#38;quot;change_address_city&#38;quot;, 10, 2);
function change_address_city($label, $form_id){
    return &#38;quot;Suburb&#38;quot;;
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lowercase on "Change City label to Suburb"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/change-city-label-to-suburb#post-303864</link>
			<pubDate>Wed, 05 Jun 2013 11:14:53 +0000</pubDate>
			<dc:creator>lowercase</dc:creator>
			<guid isPermaLink="false">303864@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to change the 'city' label in the address filed to 'Suburb'.&#60;br /&#62;
I am using filters within functions.php but it keeps breaking when i add this filter.&#60;/p&#62;
&#60;p&#62;My funcitons code is here...&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
/**&#60;br /&#62;
 * @package WordPress&#60;br /&#62;
 * @subpackage Default_Theme&#60;br /&#62;
 */&#60;/p&#62;
&#60;p&#62;if ( function_exists('register_sidebar') ) {&#60;br /&#62;
	register_sidebar(array(&#60;br /&#62;
		'before_widget' =&#38;gt; '&#38;lt;li id=&#34;%1$s&#34; class=&#34;widget %2$s&#34;&#38;gt;',&#60;br /&#62;
		'after_widget' =&#38;gt; '',&#60;br /&#62;
		'before_title' =&#38;gt; '&#38;lt;h2 class=&#34;widgettitle&#34;&#38;gt;',&#60;br /&#62;
		'after_title' =&#38;gt; '&#38;lt;/h2&#38;gt;',&#60;br /&#62;
	));&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
add_filter(&#34;gform_address_types&#34;, &#34;aus_address&#34;, 10, 2);&#60;br /&#62;
function aus_address($address_types, $form_id){&#60;br /&#62;
$address_types[&#34;australia&#34;] = array(&#60;br /&#62;
&#34;label&#34; =&#38;gt; &#34;Australia&#34;,&#60;br /&#62;
&#34;country&#34; =&#38;gt; &#34;Australia&#34;,&#60;br /&#62;
&#34;zip_label&#34; =&#38;gt; &#34;Postcode&#34;,&#60;br /&#62;
&#34;state_label&#34; =&#38;gt; &#34;State&#34;,&#60;br /&#62;
&#34;states&#34; =&#38;gt; array(&#34;NT&#34;=&#38;gt;&#34;NT&#34;, &#34;ACT&#34;=&#38;gt;&#34;ACT&#34;,&#34;NSW&#34;=&#38;gt;&#34;NSW&#34;, &#34;QLD&#34;=&#38;gt;&#34;QLD&#34;, &#34;VIC&#34;=&#38;gt;&#34;VIC&#34;, &#34;WA&#34;=&#38;gt;&#34;WA&#34;,&#34;SA&#34;=&#38;gt;&#34;SA&#34;, &#34;TAS&#34; =&#38;gt; &#34;TAS&#34;)&#60;br /&#62;
);&#60;br /&#62;
return $address_types;&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;?&#38;gt;&#60;br /&#62;
How do i now add the label change to above code without it breaking the site?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
