Home › Forums › Calendar Products › Events Calendar PRO › Create Link to an Event’s Organizer Past Events
- This topic has 12 replies, 2 voices, and was last updated 5 years, 7 months ago by Brett Johnson.
-
AuthorPosts
-
July 18, 2018 at 3:07 pm #1578538Brett JohnsonParticipant
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
July 19, 2018 at 6:30 am #1579003Jaime MarchwinskiKeymasterHi 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
July 23, 2018 at 7:04 am #1581416Brett JohnsonParticipantHi 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
July 23, 2018 at 2:28 pm #1581800Brett JohnsonParticipantThis reply is private.
July 24, 2018 at 3:21 am #1582095Jaime MarchwinskiKeymasterHi 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
August 3, 2018 at 2:56 pm #1589988Brett JohnsonParticipantThis reply is private.
August 3, 2018 at 3:08 pm #1589993Brett JohnsonParticipantThis reply is private.
August 6, 2018 at 5:22 am #1590988Jaime MarchwinskiKeymasterHi 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
August 6, 2018 at 10:45 am #1591243Brett JohnsonParticipantThanks 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
August 7, 2018 at 6:10 am #1591789Jaime MarchwinskiKeymasterHi 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
August 7, 2018 at 2:48 pm #1592449Brett JohnsonParticipantHi 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,
RonaldAugust 8, 2018 at 9:45 am #1593109Jaime MarchwinskiKeymasterHi 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
August 15, 2018 at 4:16 pm #1598516Brett JohnsonParticipantI 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;
}September 6, 2018 at 9:35 am #1615378Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Create Link to an Event’s Organizer Past Events’ is closed to new replies.