Zip-code before City in Gravity Forms (order of address field)

GravityWPGravityForms0 Comments

Do you want to change the order of the Gravity Forms Address field items? Especially to put the ZIP-code before the City (as is usual in Germany and the Netherlands for example)? Here you find the easiest way.

Copy this code in your functions.php in your theme directory and the zip-code will show before the City in stead of after it.

add_filter( 'gform_address_display_format', 'address_format' );
function address_format( $format ) {
    return 'zip_before_city';

Share this Post