Support

Home Forums Pre-Sales City and state in ee4 decaf list and widget

City and state in ee4 decaf list and widget

Posted: September 25, 2015 at 5:11 am


jeff

September 25, 2015 at 5:11 am

I’m using ee4 decaf to present to a client, is there a way I can include city and state in event list and widget event list?


Lorenzo Orlando Caum

  • Support Staff

September 25, 2015 at 7:23 am

Hi Jeff, there are template options to show the venue information in the event listings page in the regular version of Event Espresso 4 in Events –> Templates:

http://cl.ly/image/1K1V1K3W0725

Adding the city and state to the widget can be done by creating a custom widget and then adjusting some of the coding.

You could create a demo site on http://demoee.org and that will have the regular version of Event Espresso 4 running.


Lorenzo


jeff

September 25, 2015 at 11:37 am

Hi Lorenzo Any chance you could point me at some more information on how to put that custom widget and extra code together. It seems like a major missing piece for anyone promoting events at multiple venues? I’ve see a few peopele in the forums asking about this but I’m very new to WP and coding so I could use some help with this piece


Lorenzo Orlando Caum

  • Support Staff

September 25, 2015 at 11:50 am

Yes, please see this support post for an example:

https://eventespresso.com/topic/widget-templating-add-location-change-date-format-remove-line-break/


Lorenzo


jeff

September 25, 2015 at 12:53 pm

Hi Lorenzo, I’ve created the clone widget but don’t know where to add the code to bring in the city and state which your colleague mentions in the above link, could you help me out by telling me the line numbers it needs to go between?


jeff

September 28, 2015 at 4:26 am

Hi Lorenzo, as above I managed to get the custom plugin working fine, I tried adding the code to add in city and state to the widget but without success, any chance you could give me a little extra help on what code is needed and where it should be inserted in the plugin file?
THANK YOU!!


Lorenzo Orlando Caum

  • Support Staff

September 29, 2015 at 6:52 am

Hi Jeff, please try this solution:

https://gist.github.com/lorenzocaum/b955143d40dd9176c7c4


Lorenzo


jeff

September 29, 2015 at 9:17 am

Brilliant, that does the trick. Thank you, you’ve been a great help, hopefully they’ll buy it!


Lorenzo Orlando Caum

  • Support Staff

September 29, 2015 at 9:48 am

Glad to hear this is working for you Jeff.


Lorenzo

The support post ‘City and state in ee4 decaf list and widget’ 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