[Plugin: The Events Calendar] Make event categories work like standard WordPress categories?
-
Hi, I’m trialing The Events Calendar plugin and there’s some simple functionality I need before we go ahead and use it.
I’d like to duplicate the functionality of the standard WordPress List Categories
<?php wp_list_categories(''); ?>
so that I should see a normal list of event categories. And then when I click one of the categories I’d like to land on a page similar to the index page, just with the appropriate events listed.Just like the normal WordPress functionality for categories.
Is this possible?
I’m currently using this code to list the Event Categories:
<?php $terms = get_terms("tribe_events_cat"); $count = count($terms); if ( $count > 0 ){ echo "<ul>"; foreach ( $terms as $term ) { echo "<li><a href='" . get_site_url() . "/events/category/". $term->name." '>" . $term->name . "</a></li>"; } echo "</ul>"; } ?>
But if you click on a category it takes you to the Event List / Calendar screen. Not to index.php, or even category.php.
Any advice? Thanks!
https://www.ads-software.com/extend/plugins/the-events-calendar/
- The topic ‘[Plugin: The Events Calendar] Make event categories work like standard WordPress categories?’ is closed to new replies.