• Resolved kathycac

    (@kathycac)


    I am using Event Manager on WP Multisite in global tables mode.

    I do not want to display subsite events on the main site, but I do want to show certain event categories from the main site on all calendars and event lists of the subsites.

    Even though the widget shows categories this has no effect and if the subsite has no events of its own it shows no events.

    I am experiencing two issues when displaying events from the main site on subsites:

    1) using [events_calendar blog=”1″ long_events=1 full=1 scope=”all” categories=”277, 278, 279, 280, 350, 356″] seems to display the correct events but does not start displaying any on the calendar until July 1. The link on each calendar event takes me to the home page of the subsite I am currently on.

    2) using [events_list blog=”1″ limit=”10″ scope=”future” categories=”277, 278, 279, 280, 350, 356″] ignores the category restrictions and each of the event links takes me to the home page of the subsite I am on, just as the calendar links do.

    HELP please.

    Thanks,

    Kathy

    https://www.ads-software.com/extend/plugins/events-manager/

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter kathycac

    (@kathycac)

    I guess I could just exclude categories in the category parameter in the calendar shortcode and events from the subsite would show up.

    A couple more questions…

    – Is there a way to add a filter in my theme’s function file so that events from certain categories from the main site automatically show up on all of the calendars of the subsites while allowing the events from the subsite to also show up on its calendar? Or perhaps create a calendar page template for the subsite themes with the appropriately configured calendar shortcode – I would need to populate the blog parameter with the current blog ID.

    – Can you add a parameter to the event widget for blogs when using the plugin in multisite?

    Thanks!

    Thread Starter kathycac

    (@kathycac)

    I added a calendar page template – page-calendar.php and replaced the content with this:

    `function calendar_page_content() {
    global $blog_id;
    echo do_shortcode(‘[events_calendar long_events=1 full=1 blog=”1,$blog_id” category=”-274,-275,-276,-281,-282,-283,-357,-380″]’);
    }’

    (I need to use the shortcode because I am also using Full Calendar and EM_calendar displays the default calendar.)

    If I just use blog=”1″ it works beautifully. When I try to display events from the main blog and the current blog I can’t get it to work.

    When I try to add the value of the global variable $blog_id (the current blog id)to the shortcode it adds events from ALL the blogs not just the main blog and current blog. When I echo the value of $blog_id it’s correct but obviously I can’t use it the way I’m trying to in the shortcode.

    Do you have a suggestion for how I can add this to the shortcode correctly?

    Thread Starter kathycac

    (@kathycac)

    Here’s the function I used in my page-calendar.php to return events from the main blog and the current blog…

    function calendar_page_content() {
    global $blog_id;
    $blogs = '1,'.$blog_id;
    $content = '[events_calendar long_events=1 blog="'.$blogs.'" category="-274,-275,-276,-281,-282,-283,-357,-380"]';
    echo do_shortcode($content);
    }

    Works great!

    Now if the links on the events from the main site will just go to the right place. ??

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks for the updates.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    pls put new questions in a new topic, otherwise this will get long and confusing!

    Are you adding site specific categories soon?

    that won’t happen. you can add your own taxonomies for this – https://wp-events-plugin.com/tutorials/using-additional-custom-taxonomies/

    Also, are you creating a fix for the incorrect links on the events listed on the subsites?

    yes, asap

    Thread Starter kathycac

    (@kathycac)

    OK, will do on the new questions! Sorry!

    I’ll check out the tutorial. Thanks, Marcus.

    So when the links are fixed they will go to the event on the main site’s calendar? (In a new window?)

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    yes, but not in a new window

    Thread Starter kathycac

    (@kathycac)

    Thanks for fixing the linking issue in the new release – going to update shortly!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    ok, can you confirm the updates?

    Thread Starter kathycac

    (@kathycac)

    It’s all working great! Thank you.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    glad it worked.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘WP Multisite blobal tables mode – display events from main site’ is closed to new replies.