Posted: February 8, 2013 at 9:34 am
|
Helle all, Has anyone succeeded in having the venue_city field getting listed in the widget? |
|
Hi, The upcoming events widget was not designed to display the venues and it is self contained code (so wont take code from the generally event list) so you would need to modify the code. It does a database search to get the info but its not requesting the venue info. On line 61 approx it says
replace that (comment it out for now) with
Then you can just use
to actually display the venue city |
|
Hi Dean, It turns out this piece of code doesn’t work. There is no output at all, maybe because I am using the venue manager? The original cut-and paste action I did with a piece of code from events-list.php broke the selection of categories the widget offers, so using that piece of code also is not an option. Any suggestions on how to resolve this will be very welcome! |
|
For those interested, i fixed this issue by replacing the code starting at line 49 with the following (actually, I wanted to show 3 fields extra: end_time, venue_city and a thumbnail):
Next include the following lines under $event->start_date = isset($event->start_date) ? $event->start_date : ”;
Lastly include echo lines with the above used variables and you are done. Maybe it is of help to someone. |
|
Hey, Really sorry I couldn’t get back to you earlier. Glad you found a resolution though and thanks for posting it! |
|
I can send you the complete working widget file if you like, it includes start+end time, thumbnail and city. |
|
Hey Sure thing i’d love to look at it, feel free to email in (support @ eventespresso.com) or place it on paste bin. |
The support post ‘venue_city in 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.