Posted: September 12, 2017 at 6:46 pm
|
Hi everyone! I have a site that uses the Event calendar plugin. The home page has a preview of each month’s events, then a link to the calendar to show all events for that month. To get the calendar to display a particular month, I use the override parameters in the URL: http://staging.dariendca.org/event-calendar/?year=2017&month=12 Which, for example, shows decemeber 2017, which is great. The problem is, once I change the year to 2018, it breaks and can’t show it: http://staging.dariendca.org/event-calendar/?year=2018&month=01 Is there something I’m doing wrong? Thanks |
Hi there, The So in your example this This
Those query vars are available for the ajax requests rather than to be included within query string for the page. Did you find documentation recommending you use those somewhere? |
|
|
Gotcha, thanks for your reply! I didn’t see them in documentation, but I combed through the code and found them referenced as override strings:
Since I need to create the links as standalone rather than going through AJAX requests is there a way to do this? I guess my question is, is there a way to make a link that will load a calendar for a specific month and year (without manually creating a page for every month and year with different shortcakes embedded) Thanks! |
Hi there, Your links like this one:
You can add the above to a functions plugin, then activate the plugin. |
|
The support post ‘Month and Year override for calendar’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.