Home › Forums › Calendar Products › Events Calendar PRO › Clicking next month on calendar shows all events, not category's events
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 19, 2012 at 7:39 am #23808
Andrew
MemberSo 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?
August 20, 2012 at 3:43 pm #23841Barry
MemberHi 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!
August 21, 2012 at 11:07 am #23874Andrew
MemberHere 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.August 21, 2012 at 11:09 am #23875Andrew
MemberThis is the code I have in the page template to display the calendar since there isn’t a shortcode option (i think??).
August 21, 2012 at 11:10 am #23876Andrew
MemberSorry, here it is:
http://pastebin.com/kctkZSaDAugust 21, 2012 at 1:49 pm #23881Barry
MemberAhh … 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 🙂
July 7, 2015 at 6:25 am #977573Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Clicking next month on calendar shows all events, not category's events’ is closed to new replies.
