08/06/2014 at 9:38 am
#299876
Keymaster
@ Marco
I would use a filter snippet instead of change the code directly. Here’s how…
First install the Code Snippets plugin.
Add a new snippet with the following code:
add_filter( 'cn_output_default_atts_address', 'cn_set_default_address_format' );
function cn_set_default_address_format( $atts ) {
$atts['format'] = '%label% %line1% %line2% %line3% %zipcode% %city% %state% %country%';
return $atts;
}
Save and active the snippet.
If you’ve used the addr_format
shortcode option, remove it.