Create Link to an Event’s Organizer Past Events

Home Forums Calendar Products Events Calendar PRO Create Link to an Event’s Organizer Past Events

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1578538
    Brett Johnson
    Participant

    How can I create a link to an Events page that displays an Organizer’s past events.

    Right now the plugin automatically generates a link under the Organizer section of an Event that displays that organizer’s “Upcoming Events”. I want to be able to create something similar. I want to create a link that will be displayed on my a page on my website’s that does the goes to a Events page that displayed the Organizer’s past events. Events should be displayed from most recent to oldest.

    Does the plugin support this?

    Thanks

    #1579003

    Hi Brett,

    Thanks so much for reaching out!

    You can try creating the following URL to display past events for a specific organizer, using the organizer ID:

    http://www.your-site.com/events/list/?tribe_paged=1&tribe_event_display=past&tribe_organizers=2869

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1581416
    Brett Johnson
    Participant

    Hi Jaime,

    Thank you for your assistance. How do I find the organizer ID?

    http://www.your-site.com/events/list/?tribe_paged=1&tribe_event_display=past&tribe_organizers=2869

    #1581800
    Brett Johnson
    Participant

    This reply is private.

    #1582095

    Hi Ronald,

    I’m sorry to hear that solution did not work for you.  It did work on my end, so I’m not quite sure what the issue could be there.

    Instead, there are a couple of ways that you could do this, one being using the [tribe_events] shortcode and setting the date parameter to a date in the past – all events from that date forward will be displayed.

    Alternatively, you could edit the template for the organizer pages (found at wp-content/plugins/events-calendar-pro/src/views/pro/single-organizer.php) by following these instructions and using the tribe_get_events function to pull in a list of past events for that organizer.

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1589988
    Brett Johnson
    Participant

    This reply is private.

    #1589993
    Brett Johnson
    Participant

    This reply is private.

    #1590988

    Hi Ronald,

    After reviewing your request this essentially looks like a custom development task and so is outside of our stated scope of support.

    If you’d prefer not to tackle this customization on your own, we may be able to assist you further. We do need to prioritize support requests from other customers at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help, we’ll be happy to do so.  Please let us know if you’d like to go this route so that you can be added to this queue.

    In the meantime, if there is any more information you can share (including mocks) that will help us to better understand what you are seeking please do feel free to add them to this ticket.

    If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.

    Let me know if you have any other questions on this topic!

     

    Thanks,

    Jaime

    #1591243
    Brett Johnson
    Participant

    Thanks for your reply Jaime.

    If this is as far as I can go regarding support from you guys I guess I’m on my own for the rest of the way. I’ve done similar customizations with your plugin on our site so I’m hoping I will not need additional “customizer” support. I came here to the support forum trying to save a little time since at times I find it difficult wading through your documentation and trying to find the correct functions suitable for the task without having to reinvent the wheel per say.

    Ronald

    #1591789

    Hi Ronald,

    I understand your point.  I have however given all of the information that I can to assist with this customization without needing a further look, which would require adding you to our customization queue, so that we can first prioritize other issues and bugs first.

    Let me know if you’d like to be added to this queue.

     

    Thanks,

    Jaime

    #1592449
    Brett Johnson
    Participant

    Hi Jaime,

    Is there a fee associated with being added to the customization queue? If there is no fee please add me to it. Otherwise no thank you.

    thanks,
    Ronald

    #1593109

    Hi Ronald,

    There is no fee associated with being added to the customization queue.  I will add you to the queue.

    Let me know if you have any other questions in the meantime!

     

    Thanks,

    Jaime

    #1598516
    Brett Johnson
    Participant

    I finally figured it out. See code below for anyone looking to get PAST EVENTs for a single organizer. This of course is modifying the following file:
    wp-content/plugins/events-calendar-pro/src/views/pro/single-organizer.php

    —— Working Code Below ——–

    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    }

    $organizer_id = get_the_ID();

    if (isset($_GET[‘requestpastevents’])) {
    $requestpastevents = $_GET[‘requestpastevents’];
    }

    if ($organizer_id == 68 && $requestpastevents == ‘true’) {
    while ( have_posts() ) : the_post(); ?>
    <div class=”tribe-events-organizer”>
    <p class=”tribe-events-back”>
    ” rel=”bookmark”><?php printf( __( ‘← Back to %s’, ‘tribe-events-calendar-pro’ ), tribe_get_event_label_plural() ); ?>

    <?php do_action( ‘tribe_events_single_organizer_before_organizer’ ) ?>
    <div class=”tribe-events-organizer-meta tribe-clearfix”>

    <!– Organizer Title –>
    <?php do_action( ‘tribe_events_single_organizer_before_title’ ) ?>

    Past Events for: <?php echo tribe_get_organizer( $organizer_id ); ?>

    <?php do_action( ‘tribe_events_single_organizer_after_title’ ) ?>

    <!– Organizer Meta –>
    <?php do_action( ‘tribe_events_single_organizer_before_the_meta’ ); ?>
    <?php echo tribe_get_organizer_details(); ?>
    <?php do_action( ‘tribe_events_single_organizer_after_the_meta’ ) ?>

    <!– Organizer Featured Image –>
    <?php echo tribe_event_featured_image( null, ‘full’ ) ?>

    <!– Organizer Content –>
    <?php if ( get_the_content() ) { ?>
    <div class=”tribe-organizer-description tribe-events-content”>
    <?php the_content(); ?>
    </div>
    <?php } ?>

    </div>
    <!– .tribe-events-organizer-meta –>
    <?php do_action( ‘tribe_events_single_organizer_after_organizer’ ) ?>

    <!– Custom by RF: Past Event list –>

    <?php
    // Use the tribe_include_view_list() function to be able to display past events
    echo tribe_include_view_list( array(
    ‘organizer’ => $organizer_id,
    ‘eventDisplay’ => ‘past’,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => -1
    ) );
    ?>

    </div><!– .tribe-events-organizer –>
    <?php
    do_action( ‘tribe_events_single_organizer_after_template’ );
    endwhile;

    } else {

    while ( have_posts() ) : the_post(); ?>
    <div class=”tribe-events-organizer”>
    <p class=”tribe-events-back”>
    ” rel=”bookmark”><?php printf( __( ‘← Back to %s’, ‘tribe-events-calendar-pro’ ), tribe_get_event_label_plural() ); ?>

    <?php do_action( ‘tribe_events_single_organizer_before_organizer’ ) ?>
    <div class=”tribe-events-organizer-meta tribe-clearfix”>

    <!– Organizer Title –>
    <?php do_action( ‘tribe_events_single_organizer_before_title’ ) ?>

    <?php echo tribe_get_organizer( $organizer_id ); ?>

    <?php do_action( ‘tribe_events_single_organizer_after_title’ ) ?>

    <!– Organizer Meta –>
    <?php do_action( ‘tribe_events_single_organizer_before_the_meta’ ); ?>
    <?php echo tribe_get_organizer_details(); ?>
    <?php do_action( ‘tribe_events_single_organizer_after_the_meta’ ) ?>

    <!– Organizer Featured Image –>
    <?php echo tribe_event_featured_image( null, ‘full’ ) ?>

    <!– Organizer Content –>
    <?php if ( get_the_content() ) { ?>
    <div class=”tribe-organizer-description tribe-events-content”>
    <?php the_content(); ?>
    </div>
    <?php } ?>

    </div>
    <!– .tribe-events-organizer-meta –>
    <?php do_action( ‘tribe_events_single_organizer_after_organizer’ ) ?>

    <!– Upcoming event list –>
    <?php do_action( ‘tribe_events_single_organizer_before_upcoming_events’ ) ?>

    <?php
    // Use the tribe_events_single_organizer_posts_per_page to filter the number of events to get here.
    echo tribe_organizer_upcoming_events( $organizer_id ); ?>

    <?php do_action( ‘tribe_events_single_organizer_after_upcoming_events’ ) ?>

    </div><!– .tribe-events-organizer –>
    <?php
    do_action( ‘tribe_events_single_organizer_after_template’ );
    endwhile;
    }

    #1615378
    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 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Create Link to an Event’s Organizer Past Events’ is closed to new replies.