• I appear to have a number of events that do not have a category assigned to them. The obvious solution would be to sort all events by category, and take note of the events that have none. The problem is, there is no categories column on the dashboard events page, nor is the option to display one available on the screen options drop-down.

    is there some other way to find uncategorized events (for example, in the database)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think the following will work. Use the [events_list] shortcode with the category attribute:

    category

    Supply a single id, slug or comma-separated ids or slugs (e.g. “1,categories-slug,3”) to limit the search to events in any of these categories. You can also use negative numbers and slugs to exclude specific categories (e.g. -1,-exclude-categories,-3). If you mix inclusions and exclusions, all events with included categories AND without excluded categories will be shown. You can also use & to separate ids and slugs, in which case events must contain (or not contain) both categories to be shown.

    If you have three categories with category ids of 1, 2, and 3 you should be able to use the following shortcode to get the uncategorized events:

    [events_list category="-1,-2,-3"]
    Thread Starter Gray Beard

    (@gray-beard)

    Great suggestion. That did the trick.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Find uncategorized events’ is closed to new replies.