Created
January 11, 2016 04:35
-
-
Save dboutote/3e8e58d35b8487445e9c to your computer and use it in GitHub Desktop.
Basic WordPress site set up functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function site_setup() { | |
// This network uses post thumbnails | |
add_theme_support( 'post-thumbnails' ); | |
// enable excerpts on page post_types | |
add_post_type_support('page', 'excerpt'); | |
// Adds RSS feed links to <head> for posts and comments. | |
add_theme_support( 'automatic-feed-links' ); | |
} | |
add_action( 'after_setup_theme', 'site_setup' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment