Posted: February 23, 2015 at 12:19 pm
|
Hi guys, I’ve just updated to the latest version hoping it would fix this issue (the original thread is here: https://eventespresso.com/topic/address-not-showing-correctly/). Still no cigar, look how it is displaying the addresses on our venues page: http://ee.stagebe.co.uk/venues/ Any help much appreciated. |
Hi Simon, The ticket that is mentioned in your other support thread has not been fixed yet. Have you tried setting up the readymade state/province pack for the UK? https://eventespresso.com/wiki/install-new-state-province-packs/ Along with that, if you can let me know what you’d like to be changed for the venue output, I should be able to work up a PHP snippet that change the address output there. |
|
|
Oh ok, so the address for example for Alton Towers currently shows: “Alton, Staffo, UM, ST10 4DB” Whereas we need it to not corrupt the country or crop the county so: “Alton, Staffordshire, UK, ST10 4DB” Happy for it to remove the country if that is easier. Thanks. |
Hi Simon, It turns out that the espresso_venue_address() function is pluggable. So you can add something like this to your custom snippets plugin: function espresso_venue_address( $type = 'multiline', $VNU_ID = 0, $echo = TRUE ) { EE_Registry::instance()->load_helper( 'Venue_View' ); $venue = EEH_Venue_View::get_venue( $VNU_ID ); if ( $echo ) { echo ' and it will display the address the way you want it to be formatted. |
|
|
Ah ok great, getting somewhere now. But….. Hit another sticking point. This works but where you set the county in the venue details, the list of counties is nowhere near big enough. I think there are about 10 counties showing and nowhere near the full list that is presented in the general settings > countries tab? Where is this county list governed from so I can tidy it up? Kind regards, and thanks for the above. |
Hi Simon, It’s actually on that General Settings > Countries tab, over on the right it will say “State Appears in Dropdown Select Lists”. You set all the ones you want to be selectable to “Yes”. |
|
Hi Simon, A little update on this: There are some new filters included in the latest release of Event Espresso 4.6 that allow for long form county/region names. Here’s an example of how to use the new filters. You add the following to a custom function either in your theme’s functions.php file or into a custom snippets plugin:
The changelog for version 4.6.21.p can be found here: |
|
The support post ‘Address still now showing correctly’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.