ID) . '" title="Read '.get_the_title($post->ID).'">Read more »'; } add_filter('excerpt_more', 'bones_excerpt_more'); // Adding WP 3+ Functions & Theme Support function bones_theme_support() { add_theme_support('post-thumbnails'); // wp thumbnails (sizes handled in functions.php) set_post_thumbnail_size(125, 125, true); // default thumb size add_custom_background(); // wp custom background add_theme_support('automatic-feed-links'); // rss thingy // 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', // post formats array( 'aside', // title less blurb 'gallery', // gallery of images 'link', // quick link to other site 'image', // an image 'quote', // a quick quote 'status', // a Facebook like status update 'video', // video 'audio', // audio 'chat' // chat transcript ) ); add_theme_support( 'menus' ); // wp menus register_nav_menus( // wp3+ menus array( 'main_nav' => 'The Main Menu', // main nav in header 'footer_links' => 'Footer Links' // secondary nav in footer ) ); } // launching this stuff after theme setup add_action('after_setup_theme','bones_theme_support'); // adding sidebars to Wordpress (these are created in functions.php) add_action( 'widgets_init', 'bones_register_sidebars' ); // adding the bones search form (created in functions.php) add_filter( 'get_search_form', 'bones_wpsearch' ); function bones_main_nav() { // display the wp3 menu if available wp_nav_menu( array( 'menu' => 'main_nav', /* menu name */ 'theme_location' => 'main_nav', /* where in the theme it's assigned */ 'container_class' => 'menu clearfix', /* container class */ 'fallback_cb' => 'bones_main_nav_fallback' /* menu fallback */ ) ); } function bones_footer_links() { // display the wp3 menu if available wp_nav_menu( array( 'menu' => 'footer_links', /* menu name */ 'theme_location' => 'footer_links', /* where in the theme it's assigned */ 'container_class' => 'footer-links clearfix', /* container class */ 'fallback_cb' => 'bones_footer_links_fallback' /* menu fallback */ ) ); } // this is the fallback for header menu function bones_main_nav_fallback() { wp_page_menu( 'show_home=Home&menu_class=menu' ); } // this is the fallback for footer menu function bones_footer_links_fallback() { /* you can put a default here if you like */ } /****************** PLUGINS & EXTRA FEATURES **************************/ // Related Posts Function (call using bones_related_posts(); ) function bones_related_posts() { echo '