oyegigi
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Made Easy] Share event on FacebookI deactivated Yoast’s open graph. But I’m still getting problems when I post to FB.
Forum: Plugins
In reply to: [Events Made Easy] Output "all day" rather than 12AMOK. I figured it out and thought I would post what I came up with in case someone else was needing help on the same issue.
Unfortunately the site isn’t live quite yet, but in hopes this can be of use to someone in the future: https://www.glenisredmond.com/tour-dates/
I wanted to accomplish 2 different things:
- On my event list format I wanted to make notes if an event was an all day event or multi-day event.
- On my single event format I wanted to show only the start date if it was a single date event, show both start and end dates if it was a multi-day event, and replace the dates with “all day” if it was an all day event.
EVENT LIST:
(this code is stripped down to the essentials. You’ll have to style it appropriately)[events_if tag='#_IS_ALLDAY' is_empty=0]This is an all day event. [/events_if] [events_if tag='#_IS_ALLDAY' is_empty=1]Event starts at #_{g:ia}. [/events_if] [events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"] This is a multi-day event. [/events_if]
SINGLE EVENT:
[events_if tag="#ESCj #ESCM #ESCY" value="#ESC@j #ESC@M #ESC@Y"]#M #j #Y[/events_if] [events_if tag="#ESCj #ESCM #ESCY" notvalue="#ESC@j #ESC@M #ESC@Y"]#M #j -<br />#@M #@j[/events_if] [events_if tag='#_IS_ALLDAY' is_empty=0]ALL DAY[/events_if] [events_if tag='#_IS_ALLDAY' is_empty=1]#g:#i#_{a}[/events_if]
Forum: Plugins
In reply to: [Events Made Easy] Output "all day" rather than 12AMSo how does one actually implement this feature?
excellent! thanks Marcus
MikeNGarrett,
I am having the same problem within the thematic framework. Can you explain in more detail what needs to be done to fix this error?Any help would be greatly appreciated!!
This is what I have so far and it’s close. But I’m still missing the am/pm and I can’t figure out how to create an
if
statement for an all day event. Anybody?<?php echo the_event_start_date(null,FALSE); ?> - <?php echo the_event_end_date(null,FALSE); ?> <?php echo the_event_start_date(null,FALSE,'h:i'); ?> - <?php echo the_event_end_date(null,FALSE,'h:i'); ?></td>
This is great!
I was wondering if you all could help me out with one more additional step.Instead of having a “start time” and then an “end time” in my table, I’d like to have “date” and “time”.
Ideally, date would either display the single date posted or, for example, “march 3 – march 10”.
And then the “time” would display as either “all day” or, for example, “3:00pm – 5:00pm”.
I’m still learning php and can’t figure out how to separate the date-stamp from the time-stamp. Is this possible?
Any help would be really appreciated!