Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Multisite – Showing all global events in a sub-site

  • Resolved mwalser

    (@mwalser)


    I have set-up a Multi-site in WordPress, and use the global tables mode to share events between the different sites.

    I could manage to show events that were created in a sub-site to appear on the main-site. However, I require the opposite: I would like to show events that were created in the main-site to appear on the sub-site. I tried to do this by using the ‘blog’ search attribute on the sub-site, but this doesn’t work.

    Is there a way of doing this?

    This is the code I use on my sub-site:
    <?php
    if (class_exists(‘EM_Events’)) {
    echo EM_Events::output( array(‘blog’=>’0’,’format’=>’Event: #_EVENTLINK
    ‘) );
    }
    ?>


    Thank you!

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • This code seems to work for me. What do you see when you add it?

    Thread Starter mwalser

    (@mwalser)

    I can see that it recognizes that there are events, but it doesn’t output any event information.
    E.g. the output for the code above is:

    Event:
    Event:
    Event:
    Event:
    Event:
    Event:

    Do you know what’s the cause for this problem?

    That code works for me, so maybe it’s a settings issue in Network Admin under Events > Multisite Options. I have the first two options set to Yes, everything else set to No.

    Do you have it set the same way? If not, if you use the settings above does it fix the problem?

    Thread Starter mwalser

    (@mwalser)

    First, thanks for your help 🙂

    And yes, I have set the Multisite Options the same way, and it still doesn’t work.

    Any other suggestions?

    works for me; have you tried this shortcode [events_list blog=”0″] in your subsite?

    Thread Starter mwalser

    (@mwalser)

    This is a really newbie question, but where do I have to put the [events_list blog=”0″] ?

    What is the proper way of putting this shortcode into my template files to output the events?

    Thread Starter mwalser

    (@mwalser)

    So, I figured out wehre to put the shortcode 🙂

    But now it shows a list with all events from the main blog (what I wanted), but it doesn’t show me the corrent information for the events. All events that were created in the main-site don’t have a name, have the date ’01/01/1970′, and have the time ’12″00 am’. Also, the eventlink only links to the page that is currently visible.

    But when I output these events in the main-site, it all shows up correctly.

    Any suggestions?

    Could you post a link that might help pinpoint the problem? A link to the main site might also help too. Thanks.

    Thread Starter mwalser

    (@mwalser)

    Sooo, I had Events Manager version 5.3.6 installed, and I just updated to the newest version.

    Now everything work fine 🙂 …

    Thank you all for your help!!

    thanks for updating us.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Multisite – Showing all global events in a sub-site’ is closed to new replies.