Answer the question
In order to leave comments, you need to log in
How to combine posts and events into one category on a wordpress site?
Hello! The WordPress site has the Events Calendar plugin installed . I want to make it so that the events of one calendar heading are displayed on a par with posts with the same heading, but because they belong to different taxonomies, the first thing we do is we add categories to the events:
add_action( 'init', 'tribe_add_post_categories');
function tribe_add_post_categories() {
register_taxonomy_for_object_type( 'category', 'tribe_events' );
}
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?> <!-- end post -->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question