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.

  • what are the args for $news_quer? – Makiomar Aug 13 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.