Support

Account

Home Forums Front-end Issues Can't continue query after calling post object field Reply To: Can't continue query after calling post object field

  • This is the query for the custom post type:

    <?php $obit_query = new WP_Query( array( 'post_type' => 'obituary', 'posts_per_page' => 12 ) ); while ($obit_query->have_posts()) : $obit_query->the_post(); ?>

    It works perfectly. If I remove the post object code all the fields display correctly.