Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ross Hanney

    (@rosshanney)

    Hello,

    In the event display builder field in the plugin settings, you can use an [if-now] shortcode to display content specific to events that are taking place “now”. You’d use it like this, for example:

    [if-now]<strong>On now!</strong>[/if-now] [event-title]

    There isn’t an [if-today] shortcode currently, I’m afraid, but it would make a nice addition.

    Thread Starter Tech4Eleven

    (@tech4eleven)

    that sounds promising. I want to add this info to the head of my site so maybe I can create a header text widget so I can use this shortcode. that would work right? probably my only option if I want it in the header.

    Plugin Contributor Ross Hanney

    (@rosshanney)

    Are you just wanting to display one event per day? If so, you could adjust the plugin feed settings as follows:

    • Retrieve events from: 00:00 today
    • Retrieve events until: The end of time
    • Maximum number of events to retrieve: 5

    And then in the Google Calendar Events widget settings, set the “Maximum number of events to display” option to 1.

    That would cause one event to be displayed per day. You can adjust how the event is displayed under “Display Options” in the settings.

    Thread Starter Tech4Eleven

    (@tech4eleven)

    I got it to work! Thanks so much. But i have one issue. The event changes to the next day’s event around 8pm or something. I’d like it to show the event when the day begins (12:01am), you know. Below are my settings.

    Plugin settings: https://i.imgur.com/3hh2pWX.png

    Widget settings: https://i.imgur.com/lXaKKux.png

    My display builder:

    <h2>The Flavor of the Day is <span class="fotdwidget-day "><a href="https://dev.armadillosicecreamshoppe.com/menu/flavor-of-the-day/" title="Hmm. I can taste it now.">[event-title]</a></span></h2>

    what am I missing?

    Plugin Contributor Ross Hanney

    (@rosshanney)

    This may be due to a timezone related bug that exists in the current release (0.7.2). This bug should be fixed in the development version, though, if you’d like to try it out.

    Thread Starter Tech4Eleven

    (@tech4eleven)

    i have it installed. I will let you know tonight. thanks!

    Thread Starter Tech4Eleven

    (@tech4eleven)

    works! thank you very much.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display current day's event’ is closed to new replies.