Viewing 8 replies - 1 through 8 (of 8 total)
  • If you use shortcodes without the closing tag, and without the formatting between the two tags, the default formatting set in the admin area will be used.

    Thread Starter MikeShand

    (@mikeshand)

    Thanks, that’s great. I didn’t realise that.

    However, firstly I have found that I have to use {is_recurring} (as in the above post) and NOT {is_recurrence} (as in the documentation). But more importantly, I also need {not_recurring} and that doesn’t seem to work, nor does {not_recurrence} (as in the documentation}, nor even {non_recurring} or {is_not_recurring}

    How do I get the negative so I can write
    <td>{is_recurring}#D #d #M{/is_recurring}{not_recurring}#_EVENTDAYS{/not_recurring}</td>

    to get the repeating events to only display a single date, but non repeating events to display a single date for a single day event, but a range of dates for multi-day events.

    My other more serious problem that I have only just noticed is that if I set up a daily repeating event starting yesterday, what I see is a single entry as I want, but the date is yesterday (i.e. the date of the first repeating event, even though that has passed) not today. What I want is to display the date of the next repeating event, not the date of the start of the repeating sequence. Is there a way to achieve this?

    Grouping by date for recurring dates isn’t something that could be done without custom coding. It might be possible to make something based on the code for the existing date grouping shortcodes.

    What code are you using for the other issue you mentioned?

    Thread Starter MikeShand

    (@mikeshand)

    I’m not sure I understand what you mean by grouping by date. What I want to achieve is that if I define a recurring event starting on March 2 and repeating every day. And I have a non repeating event defined on March 5. Then on the 2nd March I want it to display

    2 March the repeating event
    5 March the non repeating event

    And on the 3rd March

    3 March the repeating event
    5 March the non repeating event

    What I am getting with the code above is on the 2nd

    2 March the repeating event
    5 March the non repeating event

    But on the 3rd also

    2 March the repeating event
    5 March the non repeating event

    I.e the same

    Is there a way I can get what I want?

    The first problem is how do I get the effect of the {not_recurring} conditional. It is specified in manual, but doesn’t seem to work.

    {is_recurrence}content{/is_recurrence}

    event is part of a recurring set

    {not_recurrence}content{/not_recurrence}

    event is not part of a recurring set, meaning it is a single, normal event

    {is_private}content{/is_private}

    caimin_nwl

    (@caimin_nwl)

    Do you want to show this list in its entirety every day or are you trying to show list of daily events?

    Thread Starter MikeShand

    (@mikeshand)

    Yes, I want to show all (or perhaps the next 10 events) at all times. I don’t want to group them by days. The current problem, before I started trying to find a solution, is that if I have, for example a weekly event, I end up seeing all the future instances of that weekly event which rather overwhelms the non repeating events. What I want is to only show the next instance of any particular repeating event together with any non repeating events, and I want the repeating event to display just that date, and not the range of dates from the first ( which may be past) to the last instance of that event.

    Does that make sense?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    another way to do this is to create custom scope using this tutorial – https://wp-events-plugin.com/tutorials/create-your-own-event-scope/

    Hi Mike. I had the same problem with our village website – i.e. weekly recurring events were swamping one-off events in the “Upcoming Events” widget on my home page. Using Events Manager by Marcus Sykes. I realised the answer was to create a separate event category for weekly events – and then in the events widget, exclude the weekly event category (i.e. list all the other categories you’re using – or if you aren’t using any, just create one called something like “non recurring”). Then you can drag another instance of the Events widget into your sidebar, but for this one, set it to show the weekly events only, limited to say 3 events. So you have 2 copies of the Events widget – one with one-offs and the other with recurring. You can see what I mean here: staverton.org

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show recurring events as a single event in widget’ is closed to new replies.