Support » Plugin: My Calendar » [Plugin: My Calendar] Upcoming Events list output

  • Resolved oneprcnt


    I just started working with this plugin a couple of days ago, so I’m still in the discovery stage of deciding what it can and cannot do. After spending a considerable amount of time styling out the list view and having it display with the help of shortcodes, I’ve discovered that by default the list format shows all events, instead of just upcoming events. I realize that this can be controlled when using widgets, which I presently am not. Is there any way to show just upcoming events using the list format shortcode?

    My shortcode:
    [my_calendar category="Pub Events|Soccer Events|Darts Events" format="list" showkey="no"]

    The page I’m working with:

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe Dolson


    Not yet, sorry – other than by a custom loop in the my-calendar.php file. Soon!

    I’d take a custom loop. But I might be too thick (PHP dumb) to code one myself. But I’m always up for experimentation. Could I just use some of the code from the Widgets loop (upcoming) to add this functionality to the list view, or is that as simplistic and naive as I suspect?

    I’m not going to muddy up the forums with a duplicate post, so hopefully someone will get my message in a bottle 😉 If anyone out there has the chops or inclination to help me craft a solution that could introduce the function to have expired events vanish from existence (or at least become invisible), I would be forever thankful. This could be in the form of a modified my-calendar.php file, or perhaps another option I haven’t considered.

    Much appreciated!

    Plugin Author Joe Dolson


    This is going to happen, in time – I just haven’t had a chance to integrate it yet. Using code from the Widgets loop would be…complicated, to say the list. The list view is actually using the same data requests that the calendar view uses, and simply presents them in a different format — the upcoming events view, on the other hand, actually uses a completely different logic to acquire it’s data.

    I kind of figured that looking at the code last night. Pretty hairy stuff. The other alternative I considered was widgetizing the content area that I was using for the list, and using that short code since it has the functionality I’m looking for. However the widget produces a simple list and doesn’t allow for styling each of the specific elements (date, time, title, description) as far as I can tell. Is this feasible? Could I add classes to each of those things to better handle them with CSS? Do these classes exist, and I’m just not seeing them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: My Calendar] Upcoming Events list output’ is closed to new replies.