Home › Forums › Iconic One Pro Support › Custom Page Template for Custom Content Type displaying weird results › Reply To: Custom Page Template for Custom Content Type displaying weird results
Quick update, I modified the loop in page-news.php to read:
<?php $args = array( ‘post_type’ => ‘news’); ?>
<?php $loop = new WP_Query( $args ); ?><?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<?php endwhile; // end of the loop. ?>
Removing this command solved the problem with comments showing up: <?php comments_template( ”, true ); ?>
Also, I realize I may need a content-news.php
(based on: <?php get_template_part( ‘content’, ‘page’ ); ?>)
I copied content.php from the theme folder, into the child theme folder and renamed it content-news.php. That did not solve the formatting issue either.
At this point I am a bit stuck. I’m sure dev can offer a bit of help during business hours tomorrow. Thanks!