Mini Calendar link to single event rather than all repeating events

Home Forums Calendar Products Events Calendar PRO Mini Calendar link to single event rather than all repeating events

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #27818
    Reuben
    Participant

    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?

    #27827
    Leah
    Member

    Hey 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,
    Leah

    #27886
    Barry
    Member

    Hi 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!

    #28013
    Reuben
    Participant

    Hi 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/2fnrfVNi4W

    #28020
    Barry
    Member

    Interesting, 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.

    #28021
    Barry
    Member

    Sorry, typo:

    * As I could not replicate consistently

    #28022
    Reuben
    Participant

    Great, thanks for your help thus far. Looking forward to seeing what the devs can uncover.

    #28031
    Reuben
    Participant

    I 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.

    #28206
    Barry
    Member

    Hi 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

    #28261
    Reuben
    Participant

    Hi 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 event

    and 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-24

    Permalink structure we want to use is the same as above noted: /%postname%/

    #28277
    Barry
    Member

    Does 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 :-/

    #28342
    Reuben
    Participant

    Hi 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-24

    Here 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?

    #28343
    Barry
    Member

    No 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?

    #28348
    Reuben
    Participant

    I 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…

    #28362
    Barry
    Member

    Not impossible; does this occur on the staging installation you created where nothing else was installed?

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Mini Calendar link to single event rather than all repeating events’ is closed to new replies.