Skip to content

Instantly share code, notes, and snippets.

@madalinignisca
Created February 23, 2014 10:55
Show Gist options
  • Save madalinignisca/9169911 to your computer and use it in GitHub Desktop.
Save madalinignisca/9169911 to your computer and use it in GitHub Desktop.
WordPress themes function.php recommended things
<?php
// Support for thumbnails on proper media files - activates post thumbnails by default
add_post_type_support( 'attachment:audio', 'thumbnail' );
add_post_type_support( 'attachment:video', 'thumbnail' );
add_theme_support( 'post-thumbnails', array( 'post', 'attachment:audio', 'attachment:video' ) );
@madalinignisca
Copy link
Author

This gist will have continuous addons tracking the dev branch of WordPress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment