Exclude events from ‘news-list’ class

Forgive the basic question, this is right at the limit of my (low) knowledge and any help is appreciated:

<section class=”news-list”>
<?php while ( $news_query->have_posts() ) : ?>
<?php $news_query->the_post(); ?>
<?php get_template_part( ‘template-parts/content’, gix_get_post_type() ); ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>

All I’m trying to do is exclude my Events from the list that this is pulling from displaying. Display works perfectly, but it’s pulling in Events as well as the News content types. The events have their own page and don’t need to be displayed in this section.

Appreciate the direction.

Read more here:: Exclude events from ‘news-list’ class

Leave a Reply

Your email address will not be published. Required fields are marked *