Title: Post Format Infinite Loop
Last modified: August 21, 2016

---

# Post Format Infinite Loop

 *  Resolved [Ards](https://wordpress.org/support/users/ards/)
 * (@ards)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/post-format-infinite-loop/)
 * I’ve been stuck on this infinite loop since last night and can’t figure it out.
 * in my functions.php, I have:
 *     ```
       // Add post formarts support: http://codex.wordpress.org/Post_Formats
           add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
   
           add_post_type_support( 'news', 'post-formats', array( 'gallery', 'image' ) );
           add_post_type_support( 'recipies', 'post-formats', array( 'video', 'aside', 'link' ) );
       }
       ```
   
 * then I have a content.php file with:
 *     ```
       <?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 while( have_posts() ) : the_post(); ?>
             <?php get_template_part('content', get_post_format() ); ?>
           <?php endwhile ?>
         <?php else : ?>
         <?php get_template_part('content', 'none' ); ?>
       <?php endif; ?>
   
         <footer>
           <?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
         </footer>
         <hr />
       </article>
       ```
   
 * I’ve experimented with having content-quote.php, content-video.php, etc… but 
   i’m still getting an infinite loop. Any help is appreciated!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Ards](https://wordpress.org/support/users/ards/)
 * (@ards)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/post-format-infinite-loop/#post-5110309)
 * Figured it out. It was already included in another file.

Viewing 1 replies (of 1 total)

The topic ‘Post Format Infinite Loop’ is closed to new replies.

## Tags

 * [infinite loop](https://wordpress.org/support/topic-tag/infinite-loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Ards](https://wordpress.org/support/users/ards/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/post-format-infinite-loop/#post-5110309)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
