Cannot exclude categories in events

  • Hi,

    I'm trying to exclude a certain category in an events listing, but if I try to exclude any category, including ones that don't exist (for testing purposes), nothing is rendered at all.

    1. perch_events_custom([
    2. 'count' => 6,
    3. 'page-links' => true,
    4. 'sort' => 'eventDateTime',
    5. 'sort-order' => 'desc',
    6. 'template' => 'listing/event-list.html',
    7. 'category' => '!test',
    8. ]);

    If I remove the category line, everything shows as expected.

    In yours docs, it says the 'not' syntax can be used for category filtering.

    Am I doing something wrong?

    I've updated to latest Perch 3 version, latest Events addon version...

  • drewm

    Approved the thread.
  • I've ended up using the blog app for what I need, but it would have been nice to have had a separation of concerns.

    Do you have plans to bring the app up to date?

    1. 0.0697 0.0023 [nil] SELECT DISTINCT e.* FROM perch3_events e, perch3_events_to_categories e2c, perch3_events_categories c WHERE eventDateTime>='2019-03-01' AND e.eventID=e2c.eventID AND e2c.categoryID=c.categoryID AND categorySlug IN ('!golf-days') ORDER BY eventDateTime ASC
    2. 0.0713 0.0017 Using template: \templates\events\listing\event-list.html