---
title: Automatic Theme Fallbacks for Post Formats in WordPress 3.6
date: 2013-04-03T07:00:56+00:00
modified: 2013-04-02T21:43:12+00:00
image:: https://kaspars.net/wp-content/uploads/2013/04/wordpress-adding-link-post-format-top.png
permalink: https://kaspars.net/blog/post-formats-wordpress-3-6
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
post_tag:
  - How to
  - Snippet
category:
  - WordPress
---

# Automatic Theme Fallbacks for Post Formats in WordPress 3.6

![WordPress 3.6 adding post format content to main content automatically](https://kaspars.net/wp-content/uploads/2013/04/wordpress-adding-link-post-format-top.png?strip=all&quality=90&resize=500,231)

Today I noticed that WordPress (3.6-alpha-23883) has started automatically adding content to my posts that use post format other than the standard “post” and have some of the new meta fields filled out. Then I found [this ticket #23347](http://core.trac.wordpress.org/ticket/23347) which along with the attached patches explained everything — posts of the following post format: link, image, quote, video and audio will have `post_formats_compat` applied to `the_content` filter in `<a href="http://core.trac.wordpress.org/browser/trunk/wp-includes/default-filters.php?rev=23881#L135">wp-includes/default-filters.php</a>`, which means that all themes that don’t explicitly define

```
add_theme_support( 'structured-post-formats', array( 'link', 'image', 'etc...' ) )
```

will have that meta information prepended or appended automatically to post content.

### Solution

Simply remove `post_formats_compat` from `the_content` filter, like so:

```
remove_filter( 'the_content', 'post_formats_compat', 7 );
```

or mark your theme as being aware of that new post format meta:

```
add_theme_support( 'structured-post-formats', array( 'link', 'image', 'quote', 'video', 'audio' ) );
```