entrepreneurial
Forum Replies Created
-
BTW we’re using WP 3.6 and latest version of event calendar plugins The Events Calendar 3.0.3, The Events Calendar Pro. 3.0.5
Can anybody help with this? Sorry I don’t mean to be pushy, but we really do need a solution to this as soon as possible. Happy to pay if that’s what it takes.
Thanks,
KarlOk, so I think I’m not far off, all that’s confusing me is that I can’t find where the recurring event end date is stored in the database.
I’ve triedecho $EM_Event->event_end_date;but that just seems to take the event_start_date and then adds the number of days from the section “Each event lasts X day(s)” in the recurring events admin section.For illustration see this image:
http://s1336.beta.photobucket.com/user/Static_Shift/media/event_end_dateissue_zps67299fef.png.html?sort=3&o=0My biggest confusion is the fact that it is stored correctly in the wp_em_events table in the database as ‘event_end_date’, and in the admin panel it is calling it using the same value ‘event_end_date’, which works correctly. So why does it not work correctly when you use
echo $EM_Event->event_end_date;in the event-single.php. Also of note…the end date placeholder is causing the same problem.Any more help would be hugely appreciated.
Thanks for the response Marcus…Yes, you are correct, I want two separate lots of details:
– The date for the recurrence (which should only be one day not two like it is showing at the moment)
– The end date for the whole set and frequency (e.g. daily or weekly).It’s just that it’s a community events so anyone can submit events, and they often won’t include it in the description even if we tell them too. We want to make it as babyproof as possible π
I understand the placeholders don’t allow this at the moment, but I wonder how hard would it be to write a custom placeholder to display this information. The information I presume is in the database in the same way as the event dates, so it should be just about writing another placeholder that pulls this information from the database. Am I correct in assuming this. If so can you please point me in the right direction for creating a custom placeholder to pull this information.
What file are the placeholders created in, I could possibly copy one of those and change it to get the right info?
Thanks,
KarlHi agelon,
Thanks for the suggestion. I’ve tried it, but unfortunately that still just shows the single event dates, rather than the length and frequency of the recurring event.
So for example if there’s an event that runs daily for 3 weeks. I use this code
#j #M #Y #@_{ \u\n\t\i\l j M Yand it says 4 Jan 2013 until 5 Jan 2013. But the event actually goes until 25th Jan. So the end date for the recurring event does not display. And I want to tell users whether it runs daily or weekly or monthly etc.E.g. I want the single event to say the time and date that it’s on like it does, but to have another field that says “Event runs daily until 25th Jan“
I don’t want to confuse things more, but there are actually 2 issues here. All recurring events appear as if it’s over two days instead of 1. e.g. 4 Jan 2013 until 5 Jan 2013, when it should only say 4 Jan 2013 for that event. This happens whether I use #_EVENTDATES or the custom date/time formatting. Any suggestions to prevent that from happening?
Does that all make sense or have I confused things more?
For anyone else reading this…I’d recommend going with Tautologe’s workaround (assuming it works), as it will be safer than targeting the URLs. Mine was a last resort workaround
Thanks for that Tautologe!
Unfortunately we had to move this particular client to a new plugin due to some issues with MySQL. However we still have a number of clients on the plugin, so I will probably be able to use this in the future. Although I probably won’t need to with 3.0 around the corner πFYI the workaround I used before moving to a new plugin was to target the events page URLs instead:
<?php $uri = $_SERVER["REQUEST_URI"]; $uri_array = split("/",$uri); $uri_first = $uri_array[1]; ?> <?php if ($uri_first == 'event-list-page-here'){ ?> Blah blah blah <?php } else { ?> Blah blah blah <? } ?>Thanks again for getting back to me
Hey Tautologe, I am having the same issue. What are the workarounds you are using in the meantime?
Forum: Themes and Templates
In reply to: Posts not showing up in category