Title: Help! How to insert post format into function.php
Last modified: August 20, 2016

---

# Help! How to insert post format into function.php

 *  [sztufi](https://wordpress.org/support/users/sztufi/)
 * (@sztufi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/help-how-to-insert-post-format-into-functionphp/)
 * Hello!
 * I inserted the post format php code into function.php
 *     ```
       add_theme_support(
                 'post-formats', array('audio','video'));
       ```
   
 * And something went wrong.I took a print screen check it!
 * [http://urbanheroes.ro/home/wp-content/uploads/2012/03/wordpress-post-format.jpg](http://urbanheroes.ro/home/wp-content/uploads/2012/03/wordpress-post-format.jpg)

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/help-how-to-insert-post-format-into-functionphp/#post-2615413)
 * And where did you add this in your functions.php file? It should be inside a 
   function that is triggered by `after_setup_theme` – eg:
 *     ```
       add_action( 'after_setup_theme', 'function_name' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Help! How to insert post format into function.php’ is closed to new replies.

## Tags

 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/help-how-to-insert-post-format-into-functionphp/#post-2615413)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
