Events Manager
[resolved] Exclude Recurring Events In Widget (4 posts)

  1. webgirl
    Posted 3 years ago #

    Is there any way to exclude recurring events in the widget? If not, will you consider adding this option.


  2. agelonwl
    Posted 3 years ago #


    sorry, this isn't possible at the moment without custom codes; but simple workaround would be adding categories to your recurring events then exclude them using their category id e.g. "-78" where 78 is the category id in Appearance > widgets > events widget > Category IDs.

    You assign categories to the events. Once you do that, visit the Events > Event Categories menu item and you can see the IDs there, if not, click 'Screen Options' on the top right of that page and enable the ID collumn.

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    I don't have any snippets handy for this, but we have a filter you can hook into:

    $events = EM_Events::get(apply_filters('em_widget_events_get_args',$instance));

    you'd want to add $instance['recurrences'] = 0; to $instance

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    or, come to think of it, use shortcodes combined with this plugin:


    [events_list recurrences="0"]

    you can do everything you do in shortcode and more than with a widget

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic