Is there some (easy) way to add the date of an event to the title on the page (e.g. not to the actual title of the event)?
For example, when I select an event from the calendar or widget, I then don’t see any date (unless I put it in the description text). e.g. http://therecreationclub.com/events/city-to-surf-2013/
thanks,
Sue
Hi Sue,
Does your theme contain an single-event.php
. If it doesn’t then the plug-in automatically adds event details to the event’s content (e.g. see http://wp-event-organiser.com/demo/events/event/monthly-event/).
If you’re not seeing that content perhaps your theme’s single.php
doesn’t contain the_content()
(or there is a conflict?). But in any case, you can display the event’s dates by creating a single-event.php
. The easiest way is to duplicate single.php
and then add in functions to display an event’s date(s).
Keep in mind that the single event page isn’t tied to any one specfic occurrence. See documentation for these functions for displaying an event’s date(s):
Alternatively, in your single-event.php
you can put:
<?php eo_get_template_part('event-meta','event-single'); ?>
to include event details.
This page summarises how to edit the templates: http://wp-event-organiser.com/documentation/editing-the-templates/
Stephen Harris
Thanks Stephen. I’m pretty sure my earlier attempt to create a single-event page met with disaster (because I didn’t follow the instructions!).
I’ll give this a go though. Thanks again!
Sue
Okay. Not getting it. Sorry.
I’m assuming that something needs to go here:<!-- Display event title -->
<h1 class="entry-title"><?php the_title(); ?></h1>
but I’m a bit (a lot) fuzzy on what it would need to be.
I really must get a better theme, too. It took me ten minutes just to find the single.php.
Sue
Hi Sue,
That’s right :). Drop me an email via this form and I’ll take a look for you.
Stephen Harris