You can use register_taxonomy_for_object_type() to use a taxonomy with a post type, without having to touch the post type registration code, example:
function wpa_categories_for_events(){
register_taxonomy_for_object_type( 'category', 'tribe_events' );
}
add_action( 'init', 'wpa_categories_for_events' );
To have events appear on the category pages, I believe you have to modify the default category queries via pre_get_posts to add custom post types, by default they only query the post post type.
function wpa_events_on_category_pages( $query ) {
if ( $query->is_category() && $query->is_main_query() ) {
$query->set( 'post_type', array( 'post', 'tribe_events' ) );
}
}
add_action( 'pre_get_posts', 'wpa_events_on_category_pages' );
Related Posts:
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Add .html extension to custom post type taxonomies
- remove custom taxonomy metabox form custom post type
- How to Build a Movie Library in WordPress 3.x
- Custom Post Type causes Page Not Found
- Plugin allowing for artists, events and venues
- custom taxonomy and custom post type url conflict
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- List taxonomy terms for post as checkboxes
- ‘No Results Found’ on single post for custom post type
- auto populate list of questions if user select a category xyz
- “Custom Post Type Permalinks” plugin URL strcuture
- WordPress custom taxonomy not showing
- Rename existing cpt and taxonomy with new textdomain
- how to create hierachial taxonomy and manage under single post type?
- Need to edit author permissions | custom taxonomy
- Adding category base to url in custom post giving 404?
- Cannot view Custom Post Type no matter what I try
- CPT-onomies CPT_TAXONOMY->get_terms extremely slow with 6K posts
- How to list the categories by custom taxonomy created?
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- Failed to update a post when I add a taxonomy to it
- How do I know if an archive correspond to a custom post type taxonomy?
- How to Display News in a Timeline with Headline, Category, and Time?
- How to make a page setting translatable in theme?
- Tips for using WordPress as a CMS? [closed]
- Query Posts by Custom Field ‘Price’
- [Plugin: Posts 2 Posts] reciprocal connections
- Custom Post Type Statuses
- add_meta_box Callback not being called
- Star rating for custom post types [closed]
- How to Make a Custom Grid View
- Woocommerce custom shared taxonomy
- Way to hook into a sidebar call to replace it with a custom sidebar
- taxonomy_template filter do not loads custom taxonomy template properly
- How to add rewrite rules and pagination to retrieve attachments files?
- Set object terms not working on plugin activation
- wordpress reusable content blocks
- how do i remove posts from a WP_Query so the pagination is right?
- WP plugins for building a database?
- Accessing post’s meta data based on user’s click of a post
- Adding a custom post type taxonomy template in plugin
- Plugin custom post type – Internal server Error
- How can I make a custom post type sticky?
- Is it possible to create Custom Post plug-in?
- How to make a proper custom post type link
- limit value taxonomy based on previous taxonomy value wordpress
- Metabox not show in categories custom post type cmb2
- How to set taxonomy in custom plugin?
- WP_Terms_List_Table Quick Edit not working
- Mq translate plugin custom post type issue
- Plugin generated taxonomies’ permalinks with custom placeholders
- ‘Organize Series Plugin’ as muti author feature
- Using ACF default value to autoincrement a number field
- Default taxonomy template in plugin, override in theme
- How to Resize the Custom Post Images?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- posts from multiple post types in one slider
- Custom Post Type – custom form in dashboard
- Renaming Custom Taxonomy Values
- WP-API Custom Post Type json_no_route
- Plugin generated unexpected output – No PHP errors
- Smarter navigation plugin and custom taxonomies
- Use jQuery Datepicker code from plugin
- Installed Forca Theme, wonder how I can alter Post editing screen
- Posts 2 Posts: Display custom types connected to the same other custom type but with another connection
- Dictionary-style definition list plugin
- Import Recent Posts Only and Ignore old ones if exist
- WordPress REST API: Query media files attached to a custom post type
- How to get the custom field value using SQL query
- Create category for each user
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- custom post type plugin error [closed]
- Add an action based on custom post meta field
- Merging new theme and plugins from development site to production
- Ultimate Members Default Post Layout problem
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- How to create meta fields with more than 1 relation?
- CPT UI: Connect a custom post type to a custom post type
- Taxonomy question
- Add “selected” class to custom taxonomy dropdown search
- Calling an custom field from theme option at the frontend
- Is saving multiple options or saving multiple items in one option better?
- How to set up year view for datepicker in The Events Calendar plugin?
- WordPress Custom post type won’t save properly
- Making a Custom Post Type Publish Loop
- WordPress User Frontend Editing Custom Fields
- “The Events Calendar” Issues in WP 3.2
- Remove base from the custom post type URL [duplicate]
- Make a magic tag work with Custom Post Types
- Set the title of a custom post automatically by using info from custom fields?
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- Create CPT on Ajax Call
- Create a custom taxonomy’s term form
- how to compare date meta value in jet smart filter Date query?
- My site has only one page, and users access my uploaded mp3 files from there – can I analyze access by song title?
- Tickera missing attendees – No attendees found
- How to check if the post exists in any of the categories?