Why doesn’t /2013/01/ properly return January’s archives in archive.php?

Don’t use query_posts in the template for simple modifications of the main query. Use the pre_get_posts action instead to modify the query before it runs: function wpa_date_posts_per_page( $query ) { if ( !is_admin() && $query->is_date() && $query->is_main_query() ) { $query->set( ‘posts_per_page’, 5 ); } } add_action( ‘pre_get_posts’, ‘wpa_date_posts_per_page’ );

Specify image dimensions

In your theme’s functions.php file you can add add_image_size( ‘thumb’, 600, 350, true ); add_image_size( ‘thumbnil’, 600, 350, true ); add_image_size( ‘medium’, 600, 350, true ); add_image_size( ‘large’, 600, 350, true ); add_image_size( ‘post-thumbnail’, 600, 350, true ); add_image_size( ‘{custom-image-type}’, 600, 350, true ); For more information have a look at http://codex.wordpress.org/Function_Reference/add_image_size

How to concatenate inside the _e() function the right way?

the_search_query() echoes itself, so by putting it into another echo function (what _e() is) you’ll get result as in second example. It isn’t recommended to use variables or function inside l18n functions, because they can’t be translated, for more information see Otto’s: Internationalization: You’re probably doing it wrong. So you should use code like this: … Read more

Editing the custom background CSS

Yes, that is possible. Take a look at the codex and you will see that you can pass arguments with add_theme_support( ‘custom-background’). One of them is the callback function that generates the <style> tags: _custom_background_cb. You can pass your own function as an argument to add_theme_support. Here is the code of the original function (retrieved … Read more