add_data( 'travel_notes-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet wp_enqueue_script( 'travel_notes-js' , get_template_directory_uri() . '/library/js/scripts.js', array(), '', true ); } } /********************* THEME SUPPORT *********************/ // Adding WP 3+ Functions & Theme Support function travel_notes_theme_support() { // wp thumbnails (sizes handled in functions.php) add_theme_support( 'post-thumbnails' ); add_editor_style(); // default thumb size set_post_thumbnail_size(125, 125, true); // wp custom background (thx to @bransonwerner for update) add_theme_support( 'custom-background', array( 'default-image' => '', // background image default 'default-color' => 'fafafa', // background color default (dont add the #) 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ) ); // rss thingy add_theme_support('automatic-feed-links'); // to add header image support go here: http://themble.com/support/adding-header-background-image-support/ // adding post format support add_theme_support( 'post-formats', array( 'video', // video 'audio', 'quote' ) ); register_nav_menus( array( 'main-nav' => __( 'The Main Menu', 'travel-notes' ), // main nav in header 'social-nav' => __( 'Social Links', 'travel-notes' ), /*'footer-links' => __( 'Footer Links', 'travel-notes' ) // secondary nav in footer*/ ) ); add_theme_support( 'title-tag' ); add_theme_support( 'custom-logo' ); } /* end travel_notes theme support */ /********************* RELATED POSTS FUNCTION *********************/ // Related Posts Function (call using travel_notes_related_posts(); ) function travel_notes_related_posts() { echo '