Filter by custom Taxonomy
-
Hello,
I read several pages of the official documentation, but
echo EM_Events::output( array('my-tax'=>'my-term' ) )simply doesn’t work, it completely ignores the taxonomy and term. I checked the SQL that is put together in em-events.php to verify.
How can I filter a list of events for a custom taxonomy term? The taxonomy is registered like so:
if( defined( 'EM_POST_TYPE_EVENT' ) ) : register_taxonomy( 'event-category', array( EM_POST_TYPE_EVENT ), array( 'hierarchical' => TRUE, 'labels' => $labels, 'label' => __( 'Veranstaltungs-Kategorie', self::$textdomain ), 'show_ui' => TRUE, 'query_var' => 'event-category', 'show_in_nav_menus' => TRUE, 'rewrite' => array( 'slug' => 'event-category' ) ) );Thanks, Paddelboot
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Filter by custom Taxonomy’ is closed to new replies.