• I’m looking to try and setup ICS Calendar so that it only displays events that don’t match a given ‘event-title’. But I only want those events ignored in the widget, not the main calendar. I’ve found the code where it writes each event into the widget:

    else $options['custom_format'] = '<br/><li style="color:#333333;" class="rsswidget"><strong>%date-time%:</strong><br/>%event-title%</li>';

    and my problem is that it’s not in a loop, so I can’t see where I need to put the conditional check in to stop it printing out anything that matches the given event-title.

    So for example I’ve tried this…

    else if(event-title != 'KCH Church: Sunday Morning Meeting') $options['custom_format'] = '<br/><li style="color:#333333;" class="rsswidget"><strong>%date-time%:</strong><br/>%event-title%</li>';

    but that gets rid of all my entries because the first one matches. Although I have tried setting it with

    else if(event-title == 'KCH Church: Sunday Morning Meeting') $options['custom_format'] = '<br/><li style="color:#333333;" class="rsswidget"><strong>%date-time%:</strong><br/>%event-title%</li>';

    But that doesn’t hide the (currently, only one) event which doesn’t match the event-title.
    The ‘feed’ is showing on the homepage of my client’s site

    http://kch.churchonlydifferent.co.uk/

    Anyway, hope that makes sense. Any help would be very much appreciated.
    Thanks

  • The topic ‘Change ICS Calendar to not display certain events in the ICS Calendar Widget’ is closed to new replies.