I’m trying to add some extra information to show in the template “Shortcode event list”. I copied the template into my theme, in order to make all modifications. The original template only shows the start date, and I want to add the city of the event, the name of the venue, and the end date of the event. I allready done with adding the name of the venue and the end date of the venue, but I’m still trying to add the city of the venue, without success.
This is the code that I’m using to display the name of the venue and the end date :
<li class="<?php echo esc_attr(implode(' ',$eo_event_classes)); ?>" > <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" ><?php the_title(); ?></a><?php echo __(' | ', 'eventorganiser') . ' '.eo_get_venue_name(); ?><?php echo __(' | ', 'eventorganiser') . ' '.eo_get_the_start($format); ?> <?php echo __('-','eventorganiser') . ' '.eo_get_the_end($format); ?>
My first idea was to add the city with something like this ‘<?php echo __(”, ‘eventorganiser’) . ‘ ‘.eo_get_venue_address(‘city’); ?>’ but it doesn’t work. I suppose that the problem is that the function eo_get_venue_address displays an array.
I’m reading about the way to transform arrays in wordpress, but maybe someone there know how to do this and can give me a hand.
- The topic ‘Displaying 'city', 'venue name' and 'end date' using 'Shortcode e’ is closed to new replies.