List categories and exclude child categories

After some trial and error, this is what it took to make it work… $cat_args = array(‘orderby’ => ‘count’); $cat_args[‘title_li’] = ”; $cat_args[‘exclude_tree’] = 1; $cat_args[‘exclude’] = 1; $cat_args[‘depth’] = 1; wp_list_categories(apply_filters(‘widget_categories_args’, $cat_args));

adding .current* tags to custom post types and taxonomies

The classes are not added by the Twenty Ten theme, but by the common custom navigation menu code, in _wp_menu_item_classes_by_context(), which is called from wp_nav_menu(). If you want to add extra classes you can do that by either hooking into wp_nav_menu_objects, called once with the whole menu tree, or into nav_menu_css_class, called when rendering each … Read more

How do I highlight the menu for a child page?

The archives.php template file is a custom page template file for a static Page. The is_archive() and is_home() conditionals apply to a blog posts archive and blog posts index, respectively.So, you’re never going to get is_archive() to return true while displaying the output of archives.php. To have your archives.php static Page appear in the menu: … Read more

Removing title tags from each page

You can open your theme files and remove the code that adds this to the page. The typical files to look in are: index.php, page.php, post.php, single.php. Look for this: <h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2> or it might look like this: <?php the_title(); ?> You might want to comment the part of code out … Read more