Support » Plugin: Events Manager » [Plugin: Events Manager] wp_em_events says 163 total but Events admin says 155?

  • Resolved debsch

    (@debsch)


    Just wondering what might be causing the discrepancy here.

    In my database the wp_em_events table says 163 total but in wp-admin/edit.php?post_type=event it says All (155).

    (I’m trying to add the number of listed & future events to a custom stats widget – that’s how I found the different numbers)

    Any idea why? Are there some unattached events in em_events that I should delete?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have any recurring events? I believe they’re counted separately in the WordPress admin interface.

    Aha! Yes I do.

    After ordering the column “recurrence” I see that I have 1s and 0s and I have exactly eight 1s… 155 + 8 = 163

    Problem solved. I’ll modify the query so it doesn’t count these recurring “master” events (do they have a name?)

    THANKS!

    Plugin Author Marcus

    (@netweblogic)

    no official one, recurring events template i guess?

    The name “recurring events template” makes sense to me – a template is not a real event, it’s a template for other real events, which explains why it isn’t included in the list of events, because it isn’t one.

    Plugin Author Marcus

    (@netweblogic)

    I usually call it that, i’ll stick with it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Events Manager] wp_em_events says 163 total but Events admin says 155?’ is closed to new replies.