Can I Display the Number of Events a Person Created?

Home Forums Calendar Products Community Events Can I Display the Number of Events a Person Created?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1109450
    fifteen15studios
    Participant

    Hi Modern Tribe,

    I would like to display the number of events a user created on the home page. So, for example, if a user logs in to the system who has entered events through Community Events, I would like to be able to display the number of events this person has created – preferably all active events. I’d like this number to reflect the number of events seen in the list of events when they enter the ..events/community/list page.

    I looked for an answer but couldn’t find one. Maybe there’s no function for it, but I figured there may be and thought I’d ask.

    Thanks!
    Brendan

    #1109788
    George
    Participant

    Hey Brendan,

    Thanks for reaching out. A comprehensive feature like you describe is unfortunately not possible at this time unless you were to custom-code it yourself. 🙁 I’m sorry to disappoint!

    While we cannot help with writing custom code, I would suggest tinkering with the tribe_get_events() function, which you can read about here → https://theeventscalendar.com/knowledgebase/using-tribe_get_events/

    By adding parameters to filter the results by author and such, I think you’ll have some success. Those parameter are the same ones used for WordPress’ own WP_Query class, so read up on that too for some insight on filtering by author → https://codex.wordpress.org/Class_Reference/WP_Query

    I hope this information helps!

    Thank you,
    George

    #1115432
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can I Display the Number of Events a Person Created?’ is closed to new replies.