Forgive the basic question, this is right at the limit of my (low) knowledge and any help is appreciated:
<?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