Support » Plugin: Events Manager » What is the red badge for?

  • Resolved toxicum


    Since the last upgrade, the Admin menu shows a red badge with a number.
    I didn’t find an explanation for this number.
    What is it for? How can I remove it?

Viewing 10 replies - 1 through 10 (of 10 total)
  • My question exactly! I use EM to manage HW assignments for courses I teach. The number in the red badge doesn’t seem to correspond to anythihg.

    On a website for a class I taught last summer, I have 90 published events—all of them past events—and the red badge reads 6.

    On a website for a class I’m teaching right now, I have 24 published events, six of them in the future, and the red badge reads 46!

    Anyway, I’m curious what the badge means, but I also find it irritating, since the WP admin interface has me trained to see that kind of red badge as an indication that I need to do something: update a plugin, approve or delete a pending comment, etc. And there’s no indication what EM wants me to do in response to that mysterious 6 or 46 on my course website.

    Same here but mine is showing a number 2. what is it?



    Yes, I’m seeing the same thing and have duplicated over several sites. That number shows what’s PENDING and TRASH combined. Sure, I can empty the trash and the number can go away but that’s not exactly the point I think. Did somebody choose to code this as an option?
    3 examples

    @randycaruso, I think it is just a coincidence that those numbers match. 😉

    I have “2 bubble”, and no pending events. Also, I have disabled the trash, so that is always empty – all is deleted permanently, bypassing the trash.

    I’ve looked at all table entries for 500+ events. Only 1 author, all published, all comments closed. So I can not figure out what is causing this extremely annoying bubble.

    Okay everyone, I found the code that is causing these bubbles.
    It is the first function in events-manager/admin/em-admin.php.

    What happens is, that that function checks for “pending” events, recurring events and bookings. That “pending” is NOT the same as the WordPress publish status “pending”. A pending event has event_status = 0 in the wp_em_events table, which is a custom entry, not by default used in the WP core.

    After some digging, I found that there were two rows left-over in that table with event_status 0. Checking the two post_id’s, I noticed that they had been deleted (events from 2018). So they were not in the WP Admin, as the Post ID’s had been deleted from wp_posts and wp_postmeta. Such entries are called Orphaned Content.

    I deleted the two lines from the wp_em_events table and it solved my problem -> the bubbles are gone! 😀

    If you are not comfortable with poking around in your database, you could use this great plugin:



    You can cleanup directly in the plugin settings. In advanced admin settings, there is a button to clean up.

    I wish this new feature would be documented somewhere.

    Ah… @toxicum, you are right. 😉

    For those using EM on WP MultiSite, that option is only available in the Network Admin settings of EM, and those are only available if you have network-activated Events Manager.

    If you were like me (EM only activated on one sub blog to avoid cluttering the main site and sub blogs that does not use EM), then you will not see the options until you do network-activate it. 😉



    @duisterdenhaag, thanks for your detective work, and thanks, @toxicum, for finding the easy fix buried in the EM advanced admin settings.

    I gather that the plugin dev was concerned about database bloat from old events. Good to have a fix for that, but agreed that users need clearer instructions for how to work a fix.

    Best of all would be a list of orphaned events about to be deleted when you run the cleanup process.

    @henebry, I believe the Premium version of Advanced Database Cleaner does provide that info, but I am not sure.



    Btw, to find the button to remove these orphaned events:
    Events Manager > Settings > General > Admin Tools (Advanced) > Database Cleanup > Remove Orphaned Events.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.