Change the default view for categories to List view

You may already know that you can set the default view of the calendar by going to Events > Settings > Display and selecting the view you prefer. Save your settings and that view will be used as the default view across the plugin, including the main calendar and category archives.

What you may not know is that there is a way to make the default view of your categories different from the view of your main calendar. While it's not an option in the plugin settings, a sprinkle of PHP in your theme's functions.php file will do the trick:

So, let's say your default view for the main calendar is Month View. This snippet will respect that setting, but force the category calendar archives to use List View instead.

One thing to note about using this snippet: if the category view is showing something other than what you specified, you might need to flush your permalinks. You can do this by going to WP Admin > Settings > Permalinks and clicking "Save".

Have questions about this snippet? Let us know!