chrislondon
Forum Replies Created
-
I think I’ve figured this out. I’m waiting to see if my events correctly feed through to my Google business listing.
I’m not sure my solution is the best way of doing it but, if it works, I’ll post the code in case it’s helpful to others.
Ah, of course. I’ve been using that shortcode for months and I didn’t read it properly. That’s so straightforward. Thanks!
Ah, I see. Thanks. That fixes it for me.
I’m happy to confirm that since updating to 2.5.22, featured images are now displaying on event detail pages. Thanks so much for fixing this!
Chris
Hi. I’ll submit another support ticket.
I haven’t checked the ‘hide featured image’ option either.
I think the problem must be a conflict with my theme, which is based on Genesis. If I load any Genesis child theme, I lose the featured images on event detail pages – but only if I update Ai1ec to version 2.5.20 or 2.5.21 (version 2.5.19 is fine). But if I switch my theme to, say, Twenty Seventeen, the images show up.
Forum: Plugins
In reply to: [Theater for WordPress] Calendar widget returns error following latest updateMarking this resolved now.
Forum: Plugins
In reply to: [Theater for WordPress] Calendar widget returns error following latest updatePerfect. Yes, that’s working fine for me now.
Thanks a lot.
Forum: Plugins
In reply to: [Theater for WordPress] Calendar widget returns error following latest updateFantastic! Thanks so much.
Forum: Plugins
In reply to: [Theater for WordPress] Add columns to Admin > Theater > Events tableHi Jeroen, thanks for getting back to me. That’s useful to know.
Forum: Plugins
In reply to: [Theater for WordPress] Display 'today' or 'tomorrow' in event listingsFantastic. That works perfectly. Thanks so much!
Forum: Plugins
In reply to: [Theater for WordPress] Display 'today' or 'tomorrow' in event listingsThanks, Jeroen. I think I’m nearly there, but I’ve still got two problems.
1. I can’t seem to get
$event->datetime()
to work properly. This is how I used it in my theme functions file:$eventdate = date('Y-m-d',$event->datetime());
. It generated this error: ‘Call to a member function datetime() on a non-object in […]functions.php’.As an experiment, I tried adding the code directly to theatre/functions/wpt_event.php, just to see if I could make it work. This is what I used:
$eventdate = date('Y-m-d',$this->datetime()); $today = date( 'Y-m-d' );
And then I added conditional statements using the two variables to compare dates. It worked fine. But, of course, I want to leave my core files untouched and use the filter to modify the original function in my functions.php file instead. If I simply transfer the code above to my functions.php file, I generate this error: ‘Using $this when not in object context in […]functions.php’.
2. When I made it work by temporarily hacking wpt_event.php, I noticed that filtering
$startdate
also affected instances where I’d used {{dates}} elsewhere on my site. It looks like$startdate
is used to determine$dates
in wpt_production.php. I would prefer not to apply the same filter to {{dates}}. To avoid that, could I write a completely new function and create a new filter (for example {{day}}) without hacking the core plugin files?If not, I’ll have to use a conditional statement to restrict the filter to my homepage. Although there are still a couple of instances of {{dates}} on my homepage that would be affected, I think they’re ones I could live with.
Any advice would be gratefully received. Thanks for your patience!
Chris
Forum: Plugins
In reply to: [Theater for WordPress] Display 'today' or 'tomorrow' in event listingsThanks a lot!
Can you tell me how I convert $startdate to another date format, so that I can write a conditional statement to see if the event date matches the current date?
Also, can you control the date format through the filter? I can add a date format to the placeholder in the shortcode on my page, but it looks like that overrides anything I put in the filter.
Great. Thanks for your help.
Forum: Plugins
In reply to: [Theater for WordPress] Add custom field to event templateThat’s great. Thanks for your help.
Hi. Thanks for getting back to me. Yes, that’s the plugin I’m using.