Home › Forums › Calendar Products › Events Calendar PRO › Don't diplay past events in Single Venue view.
- This topic has 18 replies, 5 voices, and was last updated 11 years, 11 months ago by Jonah.
-
AuthorPosts
-
March 7, 2012 at 11:35 am #16401KenParticipant
I have noticed that when viewing a single venue page that under the “Upcoming Events At This Venue” the events listed start with first event of the month and list the next 4 events for a total of 5 events. However they are not the “Upcoming”.
Is there a way to NOT display the past events and just the 5 upcoming for that venue?
March 8, 2012 at 10:15 am #16448RobMemberHey there Ken. Thanks for the note here. This one is a known issue we’ve got in the works for 2.0.5. The code is actually complete, so if this is a major issue for you (and you don’t mind running with 2.0.5 beta code, which we can’t provide support on for obvious reasons) feel free to email pro /a/ tri.be with a link to this thread. I’ll hook up that current beta code from there.
Otherwise, stay tuned a couple more weeks as 2.0.5 should be out by the end of the month. Sorry for the inconvenience in the interim.
March 8, 2012 at 10:28 am #16451KenParticipantIts not a deal breaker right now I think I’ll hold out for the update in a couple weeks.
I also came across an bug where if there was no events for the venue then the “edit” link at the bottom of the page (after the venue meta is displayed) would take you to the edit page for the venue.
But if there was a couple events with that venue the “edit” link (now displayed after the last event) took you to the edit page for the last event in the list.
I added this code:
wp_reset_postdata(); // reset the post data so that you can edit the venue and not the last event for this venue.
After the last
endif;
in the single-venue.php fileMarch 8, 2012 at 10:29 am #16452KenParticipantThe above solution worked to change the link to edit the venue instead of the event.
March 8, 2012 at 11:54 am #16476RobMemberThanks Ken. I was just able to recreate this myself so it definitely looks like a legit bug. I’ve logged for 2.1 (as we’re already in a code freeze for 2.0.5). Sounds like you’ve got a solution that will tide you over until then.
Appreciate the heads up. Let me know if we can do anything else on our end here, or if you dig up anything else bug-related.
March 8, 2012 at 11:56 am #16477KenParticipantSounds good…I’m glad to offer up a solution for once instead of a problem. LOL
March 9, 2012 at 10:40 am #16514RobMemberHa! You give some, you get some 🙂
March 26, 2012 at 6:46 am #17141HenryMemberI noticed this too. A workaround i’ve created on my site is:
0 ): ?>
Upcoming events<?php if ( ( strtotime(tribe_get_start_date()) < time() ) && ( strtotime(tribe_get_end_date())
<?php the_title('‘, ‘‘); ?>
~March 26, 2012 at 6:47 am #17142HenryMemberOops – that code paste didn’t seem to work?
March 26, 2012 at 3:11 pm #17165JonahParticipantWe should have php pasting capability in the comments now… Let me try it:
[php]
<meta itemprop="startDate" content=""/>
[/php]March 26, 2012 at 3:12 pm #17166JonahParticipantNope… try pastie.org or pastebin.com
March 27, 2012 at 10:23 am #17211KenParticipantFrom the update change log it states that the issue with past dates not appearing on the venue page. Am I missing something, my site still shows past events.
March 27, 2012 at 3:23 pm #17236RobMemberHey Ken: it’s behaving as it should on my end; when I set up an event to occur in the past at a given venue, it’s not showing on the frontend venue page. Have you updated both free & PRO to 2.0.5?
March 29, 2012 at 3:46 pm #17361HenryMember2.0.5 resolved the issue for me.
@Ken, this may sound obvious and you’ve probably done it already but if you’ve moved single-venue.php to your theme’s directory then you’ll need to update this file for the fix to kick in after upgrading to 2.0.5
March 29, 2012 at 4:00 pm #17369 -
AuthorPosts
- The topic ‘Don't diplay past events in Single Venue view.’ is closed to new replies.