• Resolved piccart

    (@piccart)


    Hello!

    I am working on a website which was made by another developer. Your plugin is been used to build an event calendar and in my opinion there is something weird about the monthly filters behaviour..

    have a look to the event listing page:
    https://creativeeastleigh.co.uk/new/events/

    if you click on one of the filters links “by Archive” you’ll see that is not displaying the events of the selected month, but only the previous months. is this normal? and if yes, can you please tell me where I can edit the code to change this behaviour?

    another odd thing is that the current month in the filters “by month”, is displaying the past months excluding the current.. this is because instead of upcoming/ it’s built with past/ before the ?variables ..
    As I don’t know this template and this plugin, can you please tell me where I can edit the filters bar (and/or its functions) and change this behaviour?

    I’ve read about bugs related to the month displaying, so I’ve updated the plugin to the last version but nothing is changed..

    Thank you in advance for your help!
    Regards
    Andrea

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Andrea,

    Please do correct me if I’m wrong, but I don’t think those filters are anything to do with our plugin (I suspect your developer or someone else created them) – is that a possibility?

    At any rate, to take an example, the October archive filter would probably work if linked to the following URL rather than the URL it currently points to:

    https://creativeeastleigh.co.uk/events/?action=tribe_list&tribe-bar-date=2013-10

    Perhaps you need to revise that part of your site?

    Thread Starter piccart

    (@piccart)

    Hi Barry!
    Thanx for answering!

    so the upcoming/ and past/ additional filters are not from the plugin?

    I mean, does the original plugin allow url like this:
    https://creativeeastleigh.co.uk/events/past/?action=tribe_list&tribe-bar-date=2013-10

    https://creativeeastleigh.co.uk/events/upcoming/?action=tribe_list&tribe-bar-date=2013-10

    and if yes, where I can find the code to edit their behaviour?

    As you can see, the upcoming link is showing the events starting from the selected month and then going 3 months in the future.

    The past link is not doing the same good job, as it doesn’t show the selected month, and then shows the previous 3 months events..

    I’m not sure but I think I’ve seen this upcoming and past thing written somewhere in your plugin core files, so I assumed that was an original feature. If is not, I am sorry if I’ve bothered you…

    Thank You and Regards
    Andrea

    You can, but basically what I mean though is that the ‘filters’ on the side of your calendar – which are really just a collection of links – need to be updated.

    So, for example, navigate to October in month view, capture the URL and update that link. You’ll quickly see the pattern as to how the URLs are structured and should get the hang of it.

    Does that help?

    Thread Starter piccart

    (@piccart)

    yes thanx!

    I was looking to edit the way the loop is builded up, so it will grab the month from the url and then if there is the prefix past/ it will display that month and the previous 2.

    but changing prospective, I’ve edited the code that build up the filters menu, so now the link says November, but the url is asking for december, so the loop will display the 3 months before december, which are exactly what you want to see if you click November in the Archive filters. ^_^

    Thanx for your help!

    Cheers!
    Andrea

    Glad you got a working solution in place ??

    We’re always keen to receive feedback from our users: if you had a moment and wanted to leave a remark over here that would be awesome.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Monthly Filters don't work properly’ is closed to new replies.