Home › Forums › Calendar Products › Events Calendar PRO › Mini Calendar link to single event rather than all repeating events
- This topic has 16 replies, 3 voices, and was last updated 11 years, 3 months ago by Barry.
-
AuthorPosts
-
November 9, 2012 at 3:42 pm #27818ReubenParticipant
When using the events calendar (mini-calendar) widget, links that go to recurring events seem to show all occurrences (multiple) instances of the event. Is it possible to link to the single event only?
For example, at:
http://www.downtownabbotsford.com/If you click on the November 10th tooltip, you’ll notice it will go to a very long page showing all instances of the event:
http://www.downtownabbotsford.com/event/abbotsford-farm-and-country-market/
Within table-mini.php it seems to call “tribe_get_event_link($post)” to get the link. Should something else be used here?November 9, 2012 at 5:56 pm #27827LeahMemberHey Reuben,
Thanks for posting in the forums. We don’t do support over the weekend, so please hang tight and we’ll get in touch on Monday to help you out. Thanks for your patience.
Cheers,
LeahNovember 12, 2012 at 10:08 am #27886BarryMemberHi Reuben, that’s unusual. As you point out the mini-calendar is generating URLs such as:
http://www.downtownabbotsford.com/event/abbotsford-farm-and-country-market/
When it would be preferable for them to be of a pattern that includes the individual date:
http://www.downtownabbotsford.com/event/abbotsford-farm-and-country-market/2012-11-10/
Indeed that is the expected behaviour and it’s what I experience when I test this out, so there is something atypical going on here. I do note that you have tried deactivating all other plugins and reverting to a default theme (I presume without success?) so let’s look at a couple of other avenues:
- What is your permalink structure (normally this is something like %postname% and can be found by navigating to Settings > Permalinks)
- Have you edited your templates (either directly or by using template overrides)? If so can you try switching back to the default views
- What versions of The Events Calendar, Events Calendar PRO and any other Modern Tribe plugins are you using? The current stable release is 2.0.10
It does look like you’ve made a few customizations, I can’t pull up the regular calendar view for instance even if I try to do so directly (instead I see the upcoming events list):
http://www.downtownabbotsford.com/events/month/
Is there anything in the way you have made these customizations that may be impacting here?
Thanks!
November 13, 2012 at 12:42 pm #28013ReubenParticipantHi Barry,
Thanks for your response.
Yes, after disabling other plugins, we had no success. On top of that, we have recently upgraded to the latest version of the plugin (regular/pro) to Version 2.0.10.
– Our permalink structure is currently /%postname%/
– We have made some changes to different views from within the /theme/event/ folder as an override. I have also tried to delete ‘themename/events/table-mini.php’ so that the plugin would revert back to the default install template, but that didn’t work as well.
– Both The Events Calendar, and Events Calendar Pro are using v2.0.10.I can’t think of anything else that would be impacting this.
Here is a link to a zip file containing our entire theme:
https://www.dropbox.com/sh/7e0az4yq37qxmc2/2fnrfVNi4WNovember 13, 2012 at 2:05 pm #28020BarryMemberInteresting, it did seem as if I was able to replicate this initially after activating your theme and creating some new recurring events – then I could see that for those events only the generated permalinks were missing the dates.
That said, after deleting all events and starting again the problem didn’t manifest itself again. So I can’t be certain about this as I could replicate consistently.
What I’ll have to do here is invite one of the devs to work with you since I’m out of avenues to explore here – stay tuned and I or a colleague will get back to you soon.
November 13, 2012 at 2:06 pm #28021BarryMemberSorry, typo:
* As I could not replicate consistently
November 13, 2012 at 2:08 pm #28022ReubenParticipantGreat, thanks for your help thus far. Looking forward to seeing what the devs can uncover.
November 13, 2012 at 2:39 pm #28031ReubenParticipantI also tried creating a new recurring event, and it seems to be doing the same thing. I had to remove it since this is a live site.
November 16, 2012 at 4:35 pm #28206BarryMemberHi Reuben,
Our developer cannot replicate this even when using your theme, so it may be very specific (perhaps it only happens with your installation).
I’m going to chat with him early next week as I didn’t have time today, but in the interim here is something else you might try: create a new WordPress installation in a subdirectory, install only our plugins and nothing else (especially not your theme!) and see if you can replicate this with a few test events.
It would be interesting to hear the result and indeed if you can replicate this under those circumstances you could perhaps then give us access (admin login + (S)FTP) so that we could play with it without disrupting your main site.
Thanks!
Barry
November 19, 2012 at 5:27 pm #28261ReubenParticipantHi Barry,
A quick update. We followed your instructions, and did a clean install, and found some strange issues…
I would be happy to run through them, but it would take me a while to explain here…
That aside, with the live site, we:
– reinstalled the events calendar
– reinstalled the events calender pro
– re-setup the recurring eventand now have it working like it should with the exception of one error:
on the date nov 24th, the mini calendar links to all of the recurring event below rather than the singular.
http://www.downtownabbotsford.com/event/abbotsford-farm-country-market-6/On the remaining links (eg. Dec 1st 2012), you’ll notice that it goes to the proper location: http://www.downtownabbotsford.com/event/abbotsford-farm-country-market-6/2012-12-01/
The odd thing is that when we disable permalinks and go with the WordPress default permalink structure, we get the proper URL below:
http://www.downtownabbotsford.com/?tribe_events=abbotsford-farm-country-market-6&eventDate=2012-11-24Permalink structure we want to use is the same as above noted: /%postname%/
November 20, 2012 at 6:46 am #28277BarryMemberDoes this problem appear/disappear according to whether you have deactivated other themes and switched to a default, unmodified theme?
I can’t help but feel there is a piece of information we are missing here as you seem to be experiencing a wide range of unusual behaviour :-/
November 21, 2012 at 10:34 am #28342ReubenParticipantHi Barry,
Thanks, that helped, we went into maintenance mode, and switched themes. It looks like it was happening within the ecp-single-template.php where we did a manual loop rather than using the_post(); to get the details, thus showing all recurring instances.
Last question (I promise) =)
I still can’t get the mini-calendar to display the right URL. Even tho it’s linking to the right instance, I’m not sure if this will work indefinitely or if it’s just working for this scenario.
Here is the URL with permalinks at “default” settings:
http://www.downtownabbotsford.com/?tribe_events=abbotsford-farm-country-market-7&eventDate=2012-11-24Here is the URL with ‘/%postname%/’ set for the first instance of the recurring event:
http://www.downtownabbotsford.com/event/abbotsford-farm-country-market-7/Here is the same URL for the second instance of the above event:
http://www.downtownabbotsford.com/event/abbotsford-farm-country-market-7/2012-12-01/You’ll notice that the actual occurrence date is displayed at the end of the URL. Do you know why it isn’t displaying for the first event?
November 21, 2012 at 10:46 am #28343BarryMemberNo I can’t really say. When I test this out the appropriate date is appended to the URL of the first event in the sequence as you might expect; you did mention something about a manual loop you introduced – could this be a hangover from that or other custom code?
November 21, 2012 at 11:08 am #28348ReubenParticipantI removed our entire /events/ folder from within our theme, and it still did that… weird… It’s possible that a developer may have updated the functions, but I’ve re-installed the entire plugin plus the pro plugin, so I would think everything has been overwritten back to it’s native state. I’ll do a little more poking around… maybe it’s our functions.php or something…
November 21, 2012 at 2:43 pm #28362BarryMemberNot impossible; does this occur on the staging installation you created where nothing else was installed?
-
AuthorPosts
- The topic ‘Mini Calendar link to single event rather than all repeating events’ is closed to new replies.