Publicly show calendar stats.

Home Forums Calendar Products Events Calendar PRO Publicly show calendar stats.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1204720
    Charles Daly
    Participant

    Our site is using The events calendar Pro and it is working great now. we are getting ready for a site design update and I am hoping there is a way to do the following. We use the calendar as a community events website and are proud of what it offer people in this area. Is there a way to publicly show the number of calendar events, venues, organizers etc.? In other words, people can see on the home page the stats. We feel this will help people understand how vast the site is and ho it continues to grow.

    Thank you,
    Chuck

    #1204889
    George
    Participant

    Hey Chuck,

    Thanks for reaching out.

    The core of your question is what you wrote here: “Is there a way to publicly show the number of calendar events, venues, organizers etc.?”

    The short answer is “no”, in the sense that our plugins themselves do not offer any way to do this. And so you’ll unfortunately have to use custom coding here to achieve this display of information.

    I say “unfortunately” because we cannot help with custom coding, as elaborated upon here → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    As a quick tip though, WordPress Core itself (i.e., not our plugins, but WordPress itself) has its own function called <me>wp_count_posts() which does exactly what it sounds liked: it counts the number of posts exist for a specified post type.

    So you could probably customize your theme to add this sort of information anywhere you want. Check out this page to learn more about the function and how to use it → https://codex.wordpress.org/Function_Reference/wp_count_posts

    I hope this information helps!
    George

    #1212623
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Publicly show calendar stats.’ is closed to new replies.