Hello, Is it possible to have a different default view for a particular category? So, set the main events page as “List”; category1 as “Month” and categoryb as “day”? Thanks.
That is actually a great question. We’re currently working on updating a tutorial that will allow you to set categories to be in list view automatically. However, this won’t be the exact solution that your describing from a term by term basis.
One option you could pursue would be to use is_tax() conditionals to check for specific archives of the “tribe_events_cat” taxonomy and then add redirects to the specific URLs for the view you would like for that term. So for example, category1 would redirect to “http://yourdomain.com/events/category/category1/list” to display list view and “http://yourdomain.com/events/category/category2/today” to display category 2 in day view. This code would be added to your theme’s functions.php file.
I’m sorry I wasn’t able to give you a direct response however I hope this was able to point you in the right direction.
It’s difficult to give a full example of what you’re looking for and something that isn’t fully supported within our forums, however as an elaboration of the the previous comment the possible solution would look something like:
if(is_tax('tribe_events_cat', 'your-cat-slug' ) ) {
wp_safe_redirect( 'http://yourdomain.com/events/category/your-cat-slug/list' ); //redirects set term to list view
}
This would be added to your theme’s functions.php file.