• I am trying to code the following for my Events List page: Conditional code to display the start and end of multi-date events, when applicable, PLUS code to NOT include an end time, when applicable (and I am not referring to all day events). My goal is to have it appear as:
    Event Name
    Event Date or Dates(as applicable)
    Event Start Time – Event End Time(when applicable — some events just don’t have end times)
    Address

    I have exhaustively searched the forums, reviewed the documentation and have come up with the following code:

    <dt>#_LINKEDNAME</dt>
    <dd>#F #j, #Y[events_if tag="#ESC_{F j Y}" notvalue="#ESC@_{F j Y}"] through #@_{- F j Y}[/events_if]<br />
    #g:#i#a[events_if tag="#ESC_{g: i a}" notvalue="#ESC@_{g: i a}"] #@_{- g: i a}[/events_if]<br />
    #_ADDRESS</dd>

    I have also tried a bunch of code permutations for the event times line of code.

    The display of multiple day events is working just fine, but not so with the time data.
    The plugin (I have the most current version) will not allow me to leave the End Time field blank for an event, and it will not allow me to enter 00:00 (which I could use in the conditional code). When I delete the data in the field, it reverts to 12:00am.

    When I enter a start and end time that are identical, the plugin automatically changes the event end date to the subsequent day.

    So, how to tame this gnarly beast? I am not a coder and will really appreciate any help offered.

    Many thanks in advance!

Viewing 1 replies (of 1 total)
  • Well, I missed this posdt since it was not on the forum, but I’ll respond anyway: there is a conditional tag for all-day events now, and the start time can be the same as the end time again without jumping a day.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Events Made Easy] Conditional Code for No End Time’ is closed to new replies.