Network-wide Events

Home Forums Calendar Products Events Calendar PRO Network-wide Events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1194747
    Hope
    Participant

    Hi there,

    I’m working in a multisite environment with Events Calendar Pro installed across the network. I’ve seen this great widget for displaying events from the parent site across sub-sites: https://theeventscalendar.com/cross-site-events-widget-for-multisite-users-from-shenandoah-university/

    Are there any pointers in flip-flopping this method – i.e., displaying sub-site events on the parent site? I suspect this could be a heavy database query on my network with over 40 subsites. Have you come across any efficient ways of doing this?

    Thanks!

    #1195296
    Josh
    Participant

    Hey Hope,

    Thanks for reaching out to us!

    Sure thing, you can query events from across your whole network but like you said, it could become a really intense database hit depending on the number of sites and the number of events. You could skirt this a little by only running the query on occasion and caching the results so it isn’t running all the time.

    An example approach that you could take would be something like:

    https://gist.github.com/BeardedGinger/1a1e16f3fc828666dba31ed417b69ecd

    Let me know if this helps.

    Thanks!

    #1205264
    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 ‘Network-wide Events’ is closed to new replies.