• Resolved Carlos Pereira

    (@enrique71)


    I have successfully created a couple of custom taxonomies in Pods and shared them with posts and tribe_events which is great.

    Now I’m wondering what’s the best way to associate the main post categories with tribe_events? Should I set aside the default category taxonomy and re-create it as a Pod, and then use that for both post types?

    (The support topic I linked to just shows that “extend taxonomy” isn’t for what I’m describing here.)

    Thank you in advance – loving the YouTube tutorials.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Paul Clark

    (@pdclark)

    Hi Carlos,

    While there’s not a user interface for this specific functionality, The Events Calendar does provide a filter that works for this purpose.

    Adding this snippet as a plugin or in your theme’s functions.php will add the Post Categories taxonomy to the Tribe Events post type:

    <?php
    /**
     * Plugin Name: Tribe Event Categories
     * Description: Add Categories to Tribe Events post type.
     */
    add_filter(
    	'tribe_events_register_event_type_args',
    	function( $a ) {
    		$a['taxonomies'][] = 'category';
    		return $a;
    	}
    );
    Thread Starter Carlos Pereira

    (@enrique71)

    Amazing, thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Associate main taxonomy (post categories) with other content types?’ is closed to new replies.