Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Customizing template for Event Organiser plugin

Home / Forums / Virtue Theme / Customizing template for Event Organiser plugin

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
May 1, 2019 at 8:47 pm

Hi there – The Event Organiser plugin is working great with Virtue Premium – thank you for the suggestion!

I have tweaked one of their templates (event-meta-event-single.php) to customize the way the individual event pages look with no problem.

Now I want to add this code so that the main event page (the page that lists all of the events) displays the start and end date of multi-day events:

if( eo_get_the_start( ‘Y-m-d’ ) != eo_get_the_end( ‘Y-m-d’ ) ){
//”Long” event
echo eo_get_the_start( ‘jS F Y’ ) . ‘ – ‘ . eo_get_the_end( ‘jS F Y’ );
}else{
//One day event
echo eo_get_the_start( ‘jS F Y’ );
}

It looks like the website is using your archive.php template for the event page. I have no idea where to put this code. It looks like BOTH the plugin and the theme have their own archive-events.php file… Can you suggest what template I should put it in? I know it’s beyond the scope of the theme itself, but I’d really appreciate any help!

  • The forum ‘Virtue Theme’ is closed to new topics and replies.