Title: Implementing post-Format
Last modified: August 20, 2016

---

# Implementing post-Format

 *  [Munirah](https://wordpress.org/support/users/munirah/)
 * (@munirah)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/implementing-post-format/)
 * Hope someone can help me. I am trying to implement post-format in the theme I
   am developing but having problems getting the
    formats to display. After reading
   all the articles I could find and the codex, I came up with the following code
   in the index.php I also add the code for theme support in function.php.
 * Whenever I apply the format to a post from the admin it does not display the 
   format. It looks like it’s all falling back to
    content.php. Not really sure 
   what I am doing wrong or missing out. This is my first attempt developing a theme
   from scratch, I know I have alot to learn along the way. Any help will be greatly
   appreciated.
 * I have my template files as:
    content.php content-aside.php content-quote.php
 * Post format in function.php
    ===============================
 *     ```
       add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) );?>
       ```
   
 * Code from index.php
    ==========================
 *     ```
       <?php while ( have_posts() ) : the_post(); ?>
   
       <!-- get template part for post format -->
   
       <?php
       if (has_post_format('standard')) {
       	get_template_part('content');
       }
   
       elseif (has_post_format('aside')) {
       	$format = get_post_format('aside');
       	get_template_part('content', $format);
       }
   
       elseif (has_post_format('quote')) {
       	$format = get_post_format('quote');
       	get_template_part('content', $format);
       }
   
       else{
       	get_template_part('content');
   
       }
   
       ?>
       <?php endwhile; ?>
       ```
   

The topic ‘Implementing post-Format’ is closed to new replies.

## Tags

 * [post format](https://wordpress.org/support/topic-tag/post-format/)

 * 0 replies
 * 1 participant
 * Last reply from: [Munirah](https://wordpress.org/support/users/munirah/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/implementing-post-format/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
