I can't figure out why I'm getting an infinite blog post. When I comment out loop code in content.php, it no longer loops. I'm trying to post items based on post format and failing so far. Let me know if I need to provide anymore info! I appreciate it.
content.php:
<?php
/**
* The default template for displaying content. Used for both single and index/archive/search.
*
* @subpackage FoundationPress
* @since FoundationPress 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php FoundationPress_entry_meta(); ?>
</header>
<div class="entry-content">
<?php the_content(__('Continue reading...', 'FoundationPress')); ?>
</div>
<?php if ( have_posts() ) : ?>
<?php do_action('foundationPress_before_content'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php do_action('foundationPress_before_pagination'); ?>
<?php endif;?>
<footer>
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
</footer>
<hr />
</article>