WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] wp_em_events says 163 total but Events admin says 155? (6 posts)

  1. debsch
    Member
    Posted 2 years ago #

    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/

  2. seeker286
    Member
    Posted 2 years ago #

    Do you have any recurring events? I believe they're counted separately in the WordPress admin interface.

  3. debsch
    Member
    Posted 2 years ago #

    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!

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    no official one, recurring events template i guess?

  5. debsch
    Member
    Posted 2 years ago #

    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.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    I usually call it that, i'll stick with it :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic