Home Forums Event Espresso Premium Address still now showing correctly

Address still now showing correctly

Posted: February 23, 2015 at 12:19 pm

Simon Belcher

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:

Still no cigar, look how it is displaying the addresses on our venues page:

Any help much appreciated.


  • Support Staff

February 23, 2015 at 3:42 pm

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?

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.

Simon Belcher

February 24, 2015 at 4:09 am

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.



  • Support Staff

February 24, 2015 at 12:36 pm

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 '
' . $venue->city() . ', ' . $venue->state_name() . ' ' . $venue->zip() . '
'; return ''; } return EEH_Venue_View::venue_address( $type, $VNU_ID ); }

and it will display the address the way you want it to be formatted.

Simon Belcher

February 24, 2015 at 2:52 pm

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.


  • Support Staff

February 25, 2015 at 1:54 pm

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”.


  • Support Staff

April 21, 2015 at 1:52 pm

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:

// display full names for states and countries
add_filter( 'FHEE__EEI_Address__state__use_abbreviation', '__return_false' );
add_filter( 'FHEE__EEI_Address__country__use_abbreviation', '__return_false' );

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Josh 5 years, 1 month ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!