WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Multisite - Showing all global events in a sub-site (11 posts)

  1. mwalser
    Member
    Posted 1 year ago #

    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/

  2. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    This code seems to work for me. What do you see when you add it?

  3. mwalser
    Member
    Posted 1 year ago #

    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?

  4. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    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?

  5. mwalser
    Member
    Posted 1 year ago #

    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?

  6. agelonwl
    Member
    Posted 1 year ago #

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

  7. mwalser
    Member
    Posted 1 year ago #

    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?

  8. mwalser
    Member
    Posted 1 year ago #

    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?

  9. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

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

  10. mwalser
    Member
    Posted 1 year ago #

    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!!

  11. agelonwl
    Member
    Posted 1 year ago #

    thanks for updating us.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic