• Resolved lukefish

    (@lukefish)


    It seems like the plugin treats All-Day events as Single Day events. When I use the following setup in event builder:

    [if-single-day]
    <div class="gce-list-event gce-tooltip-event">[event-title]</div>
    <div>[start-time]</div>
    [/if-single-day]
    [if-all-day]
    <div class="gce-list-event gce-tooltip-event">[event-title]</div>
    [/if-all-day]
    [if-multi-day]
    <div class="gce-list-event gce-tooltip-event">[event-title]</div>
    <div>Begins: [start-time] on [start-date]</div>
    [/if-multi-day]
    [if-location]
    <div>[maps-link]Map[/maps-link]</div>
    [/if-location]
    [if-description]
    <div><em>Details:</em> [description]</div>
    [/if-description]

    I end up with the all-day events showing twice. Once with just the title, and once with the start time.

    How can I set it up so an all-day event shows once without a start time, and a single-day event shows up with the start time?

    https://wordpress.org/plugins/google-calendar-events/

Viewing 3 replies - 1 through 3 (of 3 total)
  • ransoing

    (@mad_skills_drummer)

    For single-day events, the docs say “The event starts and ends on the same day.” So that would mean that an all-day events is also a single-day event.
    Try the following:

    <div class="gce-list-event gce-tooltip-event">[event-title]</div>
    [if-single-day]
    [if-not-all-day]
    <div>[start-time]</div>
    [/if-not-all-day]
    [/if-single-day]
    [if-multi-day]
    <div>Begins: [start-time] on [start-date]</div>
    [/if-multi-day]
    [if-location]
    <div>[maps-link]Map[/maps-link]</div>
    [/if-location]
    [if-description]
    <div><em>Details:</em> [description]</div>
    [/if-description]
    Plugin Contributor Nick Young

    (@nickyoung87)

    @lukefish

    Did the solution from @mad_skills_drummer work for you?

    Also, we did just update the plugin to version 2.0.4 so if you could update to that and let me know if it helps that would be great. Thanks!

    Plugin Contributor Nick Young

    (@nickyoung87)

    I am going to assume that his has been resolved since there has not been any replies. If you have any more problems please feel free to let us know in a new thread.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘All-Day vs. Single-day Events’ is closed to new replies.