Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.8.7, addr_format, cn_output_default_atts_address
- This topic has 6 replies, 2 voices, and was last updated 8 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
05/21/2014 at 3:23 pm #291783
Reggie Scott
ParticipantI need to insert a comma between the city and state listing of my directory. Here is a link to my site to see what I am referring to:
05/21/2014 at 4:29 pm #291794Steven Zahm
Keymaster@ Reggie
When using the default template this can only be accomplished by creating a filter. Add the following to the theme’s functions.php file:
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% %city%, %state% %zipcode% %country%'; return $atts; }
If you decide to purchase one of the commercial templates available on this site, you can adjust the address format by using a shortcode option, like so:
[connections addr_format='%label% %line1% %line2% %line3% %city%, %state% %zipcode% %country%']
I hope that helps.
05/22/2014 at 7:05 am #291830Reggie Scott
ParticipantWhen you refer to the “themes function.php file” – I assume its this one?
/templates/qtip-card/functions.php
If so I added the code to that file and it did not add the comma after the city name. Is there another file I need to adjust?
05/22/2014 at 9:08 am #291832Steven Zahm
Keymaster@ Reggie
No, the file you referenced is another Connections template, an experimental one. I mean the actual theme, functions.php file:
../wp-content/themes/{theme-folder}/functions.php
Alternatively, you could install the Code Snippets plugin and add the code as a new snippet.
05/22/2014 at 9:31 am #291836Reggie Scott
ParticipantOk I was not sure if you meant the theme of my site or of the plugin. I will give that a try.
05/22/2014 at 9:38 am #291837Reggie Scott
ParticipantSteven you are the MAN!! Thanks for the help. Fixed it right away!
05/22/2014 at 12:32 pm #291865Steven Zahm
Keymaster@ Reggie
Thanks!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.