3.3 – handling with "category"
-
The category in the plugin is NOT a category like a post category, but a taxonomy.
If you try to do something based on wp_list_categories function, some of the option won’t work. For example, hide empty categories.A basic code like this doesn’t hide anything.
$args = array( 'taxonomy' => 'tribe_events_cat', 'orderby' => 'name', 'show_count' => 0, // 1 for yes, 0 for no 'hierarchical' => 1, 'title_li' => '', 'hide_empty' => 1 ); wp_list_categories( $args );One solution is to add “category” to the register_taxonomy option of the plugin. To do this, open the_events_calendar_class.php:1278 and add this into the array list:
'category' => 'tribe_events',That’s it !
Surprisingly, i can also see now some messages, that never appeared before (i use this plugin since 3.0)….Inspired by this discussion
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘3.3 – handling with "category"’ is closed to new replies.