################################################ #an ordinary two-column theme - WordPress theme# ################################################ Theme Name: an ordinary two-column theme Theme URI: http://www.blog.ordinary.ch/?page_id=346 Version: 1.0 Description: A simple two-columns theme with two corresponding random pictures in the header and a suckertree navigation thereunder. Widget ready. Please read the readme.txt file. Author: Fabian Schmid Author URI: http://www.blog.ordinary.ch/ Tags: two-columns, fixed-width, white, black, light Some information **************** * For changing the number of header pictures, go to the randombanner.php file in the theme directory and edit the second digit in line 3 * For removing or adding a navigation item go to sidebar.php and remove or add it at the bottom of the file * For changing footer and stuff, open the translation.php file and change what you like. * For displaying the number of posts in each category, you have to edit two files: - the sidebar.php file in the theme direction - and the WordPress core file wp-includes/classes.php In the classes.php find the following function: function start_el(&$output, $category, $depth, $args) Inside that function find $link .= $cat_name . ''; And change it to $link .= $cat_name . ''; This removes the closing to the tag and will allow the post count to be part of the link. But of course the links aren’t closed so we have to add that closing tag to the following bit of code found in the same function: Find this if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->count) . ')'; and add the at the end - as you can see here if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->count) . ')'; After that, find the following line in the sidebar.php file: wp_list_cats('optioncount=0'); and replace it with this one wp_list_cats('optioncount=1'); The category dropdown is now displayed with the number of posts behind each category in brackets. Change log ********** * Version 1.0 (13.03.2009) Initial version based on 'an ordinary theme 2.0' Thank you for using my theme! For questions or feedback, complaint or love letters use blog (at) ordinary.ch