Events Made Easy Forums Bug fixed or feature request implemented Events series listed only once

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #43894
    Anonymous
    Inactive

    I would like to list recurring events only once.

    http://wordpress.naturkuenstler.de/termine/

    like this (or similar): ‘Winterzauber Kinderyoga, Fridays jan 9 – jan 30, 3-5pm’

    Is there any way to do this?

    thanks!

    #50099
    Franky
    Keymaster

    [events_list long_events=0]

    See http://www.e-dynamics.be/wordpress/?cat=18

    #50100
    Anonymous
    Inactive

    That’s the first thing I tried but it seems to have no effect.

    #50101
    Franky
    Keymaster

    Sorry, “long_events” is for multiday events. In your case: doesn’t exist, since every recurrence is really an event. Moving this to feature requests (but it’s not an easy one).

    #50102
    Anonymous
    Inactive

    I’d vote for this one too! Thanks for considering!

    #50103
    Franky
    Keymaster

    I think it can be done with 2 remarks:

    – paging will not work correctly

    – the link will jump to the first future event for the series

    So if you’re willing to accept that, I might start on this ….

    #50104
    Anonymous
    Inactive

    This would work just fine for me – thanks again for considering!

    #50105
    Franky
    Keymaster

    Just for own reference, this sql might help:

    select * from wp_eme_events where recurrence_id=0 or event_id in (select event_id from wp_eme_events where recurrence_id>0 group by recurrence_id);

    or for limiting to e.g. events starting later than 2013-06-23:

    select event_id, event_name, event_start_date from wp_eme_events where (recurrence_id=0 and event_start_date> '2013-06-23') or event_id in (select event_id from wp_eme_events where recurrence_id>0 and event_start_date> '2013-06-23' group by recurrence_id);

    #50106
    Franky
    Keymaster

    better select using union:

    select * from wp_eme_events where recurrence_id>0 group by recurrence_id union all
    select * from wp_eme_events where recurrence_id=0;

    or for limiting to e.g. events starting later than 2013-06-23:

    select * from wp_eme_events where (recurrence_id>0 and event_start_date> '2013-06-23') group by recurrence_id union all
    select * from wp_eme_events where (recurrence_id=0 and event_start_date> '2013-06-23') ;

    `

    #50107
    Anonymous
    Inactive

    Thanks for posting this, didn’t realize this was here, so sorry for not getting back sooner.

    Running this query resulted in what appeared to be correct results… how is the best way to use this with the shortcodes that exist or create a new one that is compatible?

    #50108
    Franky
    Keymaster

    I still need to analyze any possible impact of this query, so for now no progress has been made.

    #50109
    Anonymous
    Inactive

    No problem, thanks for the update.

    #50110
    Franky
    Keymaster

    Implemented in trunk:

    added option ‘show_recurrent_events_once’ to the shortcode eme_events to show recurrent events only once

    #50111
    Anonymous
    Inactive

    A huge THANK YOU! I waited til the release,and it seems to be working fine – thanks so much for adding this feature!

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top