WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
Upcoming Events list output (6 posts)

  1. oneprcnt
    Member
    Posted 3 years ago #

    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:
    http://69.89.31.158/~horsebr1/events

    http://wordpress.org/extend/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 3 years ago #

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

  3. oneprcnt
    Member
    Posted 3 years ago #

    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?

  4. oneprcnt
    Member
    Posted 3 years ago #

    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!

  5. Joe Dolson
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  6. oneprcnt
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic