Support

Home Forums Event Espresso Premium Adding additional fields to venue address

Adding additional fields to venue address

Posted: August 10, 2016 at 6:50 am


deckchairuk

August 10, 2016 at 6:50 am

Our client has asked if it would be possible to add 2 extra (4 in total) address lines to the venue address fields. Currently it’s set to 2 which, as they are inputting university addresses, means they have to fit a room number and building name on top of the normal address.

Is there a method I can use to do this or do I need to look into something more custom?

Thanks, Harry.


deckchairuk

August 10, 2016 at 6:50 am

Hello,

Our client has asked if it would be possible to add 2 extra (4 in total) address lines to the venue address fields. Currently it’s set to 2 which, as they are inputting university addresses, means they have to fit a room number and building name on top of the normal address.

Is there a method I can use to do this or do I need to look into something more custom?

Thanks, Harry.


Josh

  • Support Staff

August 11, 2016 at 9:21 am

Hi Harry,

This would involve doing some custom PHP programming. The simplest way to go about adding more fields is use the Advanced custom fields plugin, then edit copies of the venue templates (content-espresso_events-venues.php and content-espresso_venues-location.php) -or- make your own modified version of the espresso_venue_address() template tag (it’s a pluggable function) to include the new fields.


deckchairuk

August 15, 2016 at 2:01 am

Hi Josh,

Thanks for your reply.

This would work with the frontend, but would I be able to add the new fields to the right place (inline with the other fields).

Thanks, Harry.


Josh

  • Support Staff

August 15, 2016 at 10:07 am

Hi Harry,

It depends. To keep things simple you may want to use all custom fields for those address fields so they’ll be in the order you want in the backend. Then you can de-register the metabox that holds the standard venue fields.

The support post ‘Adding additional fields to venue address’ 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