All Posts Coming from content.php
-
Hello,
I’ve been trying to run a loop pulling different post formats, but I can’t seem to get the loop to pull any other template other than content.php.I currently have:
content.php
content-quote.php
content-image.php
content-gallery.php…etc.
The loop that I am running is located in index.php
the loop…
<?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php endif; ?>
The only problem is the content won’t pull from any of my custom format templates and I’m not sure why.
The template content.php is a copy of content-image.php. Any ideas of what I am doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘All Posts Coming from content.php’ is closed to new replies.