Support

Home Forums Event Espresso Premium get country name instead of the code

get country name instead of the code

Posted: November 25, 2019 at 7:39 am

Viewing 3 reply threads


Porter

November 25, 2019 at 7:39 am

hello , i am trying to display the venue address and i coudn’t get the country name , i just get the code , i tried to get it from venue instance ‘$venue->country()’ but i get just a code not the actual name. can you help me please with this.


Tony

  • Support Staff

November 25, 2019 at 7:42 am

Hi there,

country() will return either the country ID or the country name based on a file.

You likely want to use $venue->country_name() rather than the above.


Porter

November 25, 2019 at 7:50 am

yes, thank you very much for your help 🙂


Tony

  • Support Staff

November 25, 2019 at 7:56 am

You’re most welcome.

Viewing 3 reply threads

The support post ‘get country name instead of the code’ 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.

Event Espresso