New Custom WP Query not displaing
-
I am trying to run a custom wp_query to display images on my website by category. No matter what I try these items will not show below is the code. Any assistance will be greatly appreciated.
<div id=”primary” class=”content-area-wide”>
<main id=”main” class=”site-main” role=”main”>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘page-fullwidth’ ); ?>
<?php endwhile; // end of the loop. ?>
<?php
wp_reset_postdata();
$args = array(
‘category_name’ => ‘drills’,
);
$the_query = new WP_Query( $args );
?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?><?php get_template_part( ‘content’, ‘drills’ ); ?>
<?php endwhile; // end of the loop. ?>
</main><!– #main –>
</div><!– #primary –><?php get_footer(); ?>
The topic ‘New Custom WP Query not displaing’ is closed to new replies.