WordPress.org

Ready to get started?Download WordPress

Forums

Pronamic Google Maps
[resolved] How to set default country? (2 posts)

  1. debsch
    Member
    Posted 1 year ago #

    Hello again!

    All my users are from one country so I am wondering if there is a way to set that as a default so that users do not have to type in the same country name every time they create a map?

    If the address field was three or four separate fields (i.e. street, town, state, country) I'd know how to make the country field hidden and set to Australia. But the address field is one field so I'm stuck. Is there a way to set a default country?

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Remco Tolsma
    Member
    Plugin Author

    Posted 1 year ago #

    There is not an option within the Pronamic Google Maps plugin to do this.

    https://github.com/pronamic/wp-pronamic-google-maps/blob/2.2.3/views/meta-box.php#L38

    We could apply an filter on the address value in the meta box. This way you can add an default country to the address if it's empty.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic