Clicking next month on calendar shows all events, not category's events

Home Forums Calendar Products Events Calendar PRO Clicking next month on calendar shows all events, not category's events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23808
    Andrew
    Member

    So if I am viewing a particular category’s event calendar, ie: /calendars/category1-calendar/ and I click the next month link at the top of the calendar, the URI changes to /events/2012-09/ and shows all events.

    This behavior when you’re already viewing a particular category isn’t functioning the way a user expects. It should forward one month for that particular category, not link to an archive of all categories.

    I’m reporting this as a bug but how can I fix it for now?

    #23841
    Barry
    Member

    Hi Andrew, thanks for getting in touch – and I am sorry to hear you are experiencing some difficulties here.

    If I view the calendar for a specific category the URL will be something like: mysite.com/events/category/sample-category/ and I will of course see all events within that category in the current month.

    If I then click on the link for the following month (let’s say that is September 2012) I stay within the same category and the URL that I am taken to is: mysite.com/events/category/sample-category/2012-09 … so there doesn’t seem to be a problem so far as I can see.

    Can I ask you to confirm if this is what you are experiencing (or if I am misunderstanding) and what version of the plugin you are currently using?

    Thanks!

    #23874
    Andrew
    Member

    Here is an example of what I am referring to:
    http://development.hccwebstudios.com/calendar-page/
    This page is set to just show events from Category One, but if I click on September 2012 it shows ALL events from every category. This is just a demo site and I only have two categories setup, but you can hopefully see what I am talking about.

    #23875
    Andrew
    Member

    This is the code I have in the page template to display the calendar since there isn’t a shortcode option (i think??).

    #23876
    Andrew
    Member

    Sorry, here it is:
    http://pastebin.com/kctkZSaD

    #23881
    Barry
    Member

    Ahh … ok. I’ve got a better idea of what you are doing now.

    Unfortunately however I can’t really offer a great deal of further assistance – this isn’t a bug as such and so far as I can see everything works as expected under normal conditions.

    For instance, if you view “Category Two” at http://development.hccwebstudios.com/events/category/category-two/ and then click on the next-month link it takes you to http://development.hccwebstudios.com/events/category/category-two/2012-09 as expected. The problem exists only within your customized template at http://development.hccwebstudios.com/calendar-page/ … which isn’t really anything to do a problem in The Events Calendar itself.

    The only direction I can really provide if you absolutely need to embed the calendar within a page template in this way is to either handle forming the previous/next month links through your own code or look at using hooks such as tribe_get_single_option to modify the eventsSlug option.

    I’m sorry we can’t assist any further, but I do wish you luck and if you come up with any natty solutions do feel free to post them here and share them with the community 🙂

    #977573
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Clicking next month on calendar shows all events, not category's events’ is closed to new replies.