• I’m trying to use a shortcode to produce a list of events with title and date. The issue I have is that many of the events are caused by recurrence relationships and I want to include only the single instance of the event for the relevant day and not include the recurrence description. Looking at the descriptions of the parameters to the shortcode, I see no way to show only the date without the attendant recurrence info. Is that possible?

    Thanks,
    –Don

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hi Don,

    Do you mean you only want to show the first time the recurring event happens? Or you mean omitting a recurrence description? If you could include a link to your site I can see what you mean.

    Note that this plugin is intended for the free version of The Events Calendar (which doesn’t have recurring events), but I may add support in a future version or the upcoming Pro version of The Events Calendar Shortcode.

    Thanks!
    Brian

    Thread Starter donoxley

    (@donoxley)

    Brian,
    Thx for the response. Sorry, there isn’t a site to look at – I’m exploring updates for the site, but ran into the problem while testing on my dev machine. As an aside, I do have the pro version – thus the recurrence issue.
    I’m trying to create a very compact list of the next few events (when viewed from the time at which the user is looking at the site) and I really want only the event title, date, and time. The fact that it is a recurring event is of no interest (in fact very confusing) to the site user. If the title were a link, that would be a nice addition.
    Not sure how widespread my need is. I haven’t started looking into it, but I may write the code for my case which would give me the opportunity to integrate it with some other things I’m doing.
    For your thinking about where you are going, our use case is a retirement community with a closed site. At any instant, we have several hundred active calendar items (counting recurrences which we rely on heavily) so a display of the next 5-10 items might only encompass a couple of hours (if filtered). If I were to posit my druthers, I would probably have something that allowed a bit of filtering, abstracted the date to a higher level, and listed events by title and time.
    Thx again,
    –Don

    Plugin Author Brian Hogg

    (@brianhogg)

    Hi Don,

    This shortcode would give you a condenced version of the events from current time with a link to the title:

    [ecs-list-events contentorder='title, date' limit='20']

    The only issue is that recurring events from The Events Calendar PRO would be repeated, and would probably need some styling to fit with your theme?

    Thread Starter donoxley

    (@donoxley)

    Thx again, Yes, that is what I tried. It still displays all the info about recurring events. I didn’t look carefully to see if I can possibly suppress the excess text with styling or not.

    Thread Starter donoxley

    (@donoxley)

    Brian,
    Had a chance to take a better look. You’ve done a nice job giving everything a class name, so it appears that I can accomplish what I want with css. In particular, I can set .recurringInfo {display: none}.
    Thx again,
    –Don

    Plugin Author Brian Hogg

    (@brianhogg)

    Perfect! That would do the trick to hide the recurring block.

    I’ll also be adding an option to hide all but the first recurring event to the pro version here, if interested:

    https://eventcalendarnewsletter.com/the-events-calendar-shortcode/

    Thread Starter donoxley

    (@donoxley)

    I can understand the use case for only the *next* recurring event. The use case for the *first* one (which might be in the past) escapes me. Presume someone has asked for it.

    Plugin Author Brian Hogg

    (@brianhogg)

    Yes you’re right – I meant the next recurring event (or rather the first instance of a recurring event, whether it be in the past, future events, for a specific month, etc). It would all be relative to the time period asked for, or by default starting from now.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘shortcode, show only date info’ is closed to new replies.