Display organizer's calendar in a different website

Home Forums Calendar Products Events Calendar PRO Display organizer's calendar in a different website

Viewing 15 posts - 16 through 30 (of 41 total)
  • Author
    Posts
  • #1185623
    Nico
    Member

    This reply is private.

    #1187809
    Nico
    Member

    Hey Laura,

    Sorry for the delay I could finally get to this 🙂

    I’ve tested it with Feedzy and it works as expected, and it should for any other similar plugin. One thing to note is that feeds are cached so you might not be able to see the changes immediately unless you add a new query var to prevent this (for example: http://sitename/feed/?post_type=tribe_events&organizer=56&nocache=123).

    First please insert the following snippet in your theme’s (or child theme’s) functions.php file:

    /* Tribe, get feed by organizer & add date to title */
    function tribe_alter_feed ( $query ) {

    if ( !is_feed() || !tribe_is_event_query() ) return;

    // set organizer if passed
    if ( isset ($_REQUEST['organizer']) ) $query->set('organizer', $_REQUEST['organizer']);

    // pre-pend date to content
    add_filter( 'the_title', 'tribe_date_to_title', 10, 2 );

    }
    add_action( 'pre_get_posts', 'tribe_alter_feed' );

    function tribe_date_to_title( $title, $id = null ) {

    $date = tribe_events_event_schedule_details ( $id );

    return $title . ' - ' . $date;
    }

    Once that’s added, you can use the following URL to get the organizer events: http://sitename/feed/?post_type=tribe_events&organizer=94 (be sure to replace 94 for the correct organizer ID).

    The snippet will also add the event schedule to the title.

    Please let me know if this works for you,
    Best,
    Nico

    #1187816
    leonardchamber
    Participant

    Thanks! I am going to be tied up this weekend, but will test this in a few days. I really appreciate your help.

    #1188698
    Nico
    Member

    Sure! Totally no rush on this just let me know about it whenever you have time to check it out 🙂

    #1195319
    leonardchamber
    Participant

    This reply is private.

    #1196154
    Nico
    Member

    This reply is private.

    #1196170
    leonardchamber
    Participant

    This reply is private.

    #1196177
    Nico
    Member

    This reply is private.

    #1197831
    leonardchamber
    Participant

    This reply is private.

    #1199531
    Nico
    Member

    This reply is private.

    #1200013
    leonardchamber
    Participant

    This reply is private.

    #1200871
    Nico
    Member

    This reply is private.

    #1201375
    leonardchamber
    Participant

    This reply is private.

    #1202918
    Nico
    Member

    This reply is private.

    #1203486
    leonardchamber
    Participant

    This reply is private.

Viewing 15 posts - 16 through 30 (of 41 total)
  • The topic ‘Display organizer's calendar in a different website’ is closed to new replies.