Remove Author, Post and Category-related Text from a Theme?

In functions.php find: if ( ! function_exists( ‘twentyten_posted_on’ ) ) : /** * Prints HTML with meta information for the current post—date/time and author. * * @since Twenty Ten 1.0 */ function twentyten_posted_on() { printf( __( ‘<span class=”https://wordpress.stackexchange.com/questions/6277/%1$s”>Posted on</span> %2$s <span class=”meta-sep”>by</span> %3$s’, ‘twentyten’ ), ‘meta-prep meta-prep-author’, sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/6277/%1$s” title=”%2$s” rel=”bookmark”><span class=”entry-date”>%3$s</span></a>’, get_permalink(), esc_attr( … Read more

Best way to add some custom javascript using jquery to a child theme

Here you go. add_action(‘init’, ‘register_custom_jquery’); function register_custom_jquery() { wp_deregister_script(‘jquery’); wp_register_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js’, array(), ‘1.6.1’ ); wp_register_script( ‘my-custom-script’, ‘http://example.com/js/script.js’, array(), ‘1.0’ ); } add_action(‘wp_enqueue_scripts’, ‘add_js_to_page’); function add_js_to_page() { wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘my-custom-script’ ); }

Twenty ten or Twenty eleven as base for responsive child theme

Both Twenty Ten and Twenty Eleven are being maintained, since both are still bundled with core. However, Twenty Eleven has newer functionality, and a better overall codebase. I would recommend using Twenty Eleven. The only reason to use Twenty Ten, really, is that the codebase is considerably more simple. Note: when Twenty Twelve comes out, … Read more

Function to limit number of custom post types on homepage – TwentyTen

This should do the trick: add_action( ‘pre_get_posts’, ‘add_tours_post_type_to_query’ ); function add_tours_post_type_to_query( $query ) { if ( is_home() && $query->is_main_query() ){ $query->set( ‘post_type’, array( ‘tours’ ) ); $query->set( ‘posts_per_page’, 1 ); } return $query; } For the future the Codex can be your friend. Exactly this is explained there.

Template messed up on viewing posts

Viewing your pagesource and clicking on your first style sheet link brings up this error: <html> <head> <title>Not Found</title> </head> <body> <h1>Apache server with mod_pagespeed</h1> OK <hr> NOT FOUND:http://mikewills.me/blog/links-for-2011-02-24/ wp-content/themes/richardshepherd-TwentyTenFive-a8f2860 /style.css.pagespeed.ce.pAcUzu9T3K.css </body> </html> So it looks like your (cached?) stylesheet isn’t where you think it is or your apache module isn’t configured correctly.