Showing event time in search results
-
I’m playing around with my theme’s search results page so that people can see an event date and venue when using the generic WordPress search for it.
With the following code (mostly using existing code from the single event meta file), I have it displaying the venue, but the event time just shows up blank:
<div> <?php if( eo_is_all_day() ){ $date_format = 'j F Y'; }else{ $date_format = 'j F Y g:ia'; } ?> <strong><?php _e('Start','eventorganiser'); ?>:</strong> <?php eo_the_start('$date_format'); ?><br/> <strong><?php _e('Venue','eventorganiser'); ?>:</strong> <a href="<?php eo_venue_link(); ?>"> <?php eo_venue_name(); ?></a> </div>
https://www.ads-software.com/extend/plugins/event-organiser/
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Showing event time in search results’ is closed to new replies.