I’m using flexible post widget to display event items on my home page.
if( $flexible_posts->have_posts() ):
?>
<ul>
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php echo the_permalink(); ?>">
<h4 class="cal-icon"><?php echo tribe_get_start_date($post->ID, true, 'F j, Y'); ?></h4>
</a>
<p><?php echo tribe_get_start_time(); ?> - <?php echo tribe_get_end_time(); ?></p>
<a href="<?php echo the_permalink(); ?>">
<h4 class="event-icon"><?php the_title(); ?></h4>
</a>
<a href="<?php echo the_permalink(); ?>">
<h4 class="loc-icon"><?php echo tribe_get_venue( '$venue_ID' ); ?></h4>
</a>
</li>
<?php endwhile; ?>
</ul>
As you can see the code displays events based on your functions and a simple loop. How can I exclude categories?
Is it better to use your widget and customize it with css.
Thanks