• Hey I’m wondering if it’s possible to change ‘Zip’ to ‘Postal Code’ and ‘State’ to ‘Province’ on the search form? Do I have to edit a .php file?

    Love the plugin btw, just hoping I’ll be able to use it up here in Edmonton!

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Andy,
    Are you familiar with WordPress filters? There are some filters available for that. I don’t have them publicly documented yet but you can find them in /classes/simplemap.php

    Thread Starter AndyShick

    (@andyshick)

    Hey Glenn,

    Just got around to working on the site again, and It worked by changing one of the fields. Thanks so much for your help!

    In case anyone stumbles across this post and is interested in which fields were changed, you can view the code below.

    $ffi['state']		= array( 'label' => apply_filters( 'sm-search-label-state', __( '<strong>Province</strong>: ', 'SimpleMap' ), $post ), 'input' => '<input type="text" id="location_search_state_field" name="location_search_state" value="' . esc_attr( $state_value ) . '" />' );
    			$ffi['zip']			= array( 'label' => apply_filters( 'sm-search-label-zip', __( '<strong>Postal Code</strong>: ', 'SimpleMap' ), $post ), 'input' => '<input type="text" id="location_search_zip_field" name="location_search_zip" value="' . esc_attr( $zip_value ) . '" />' );

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SimpleMap] Change Fields to Canadian Values’ is closed to new replies.