wp_list_categories to show list of categories and the description

i think that wp_list_categories show categories already formated with <li> tags and you should try using get_categories which leaves the display to you. eg show list of categories and the description $all_categories=get_categories(); echo “<ul>”; foreach($all_categories as $categories_item) { echo “<li>”.$categories_item->description.”</li>”;//you get the idea } echo “</ul>”; EDIT: i saw exactly what you need here

How can I show the subcategories content on the parent category page?

One possibility: <?php $sub_cats = get_categories(‘parent=” . get_query_var(“cat’)); if( $sub_cats ) : foreach( $sub_cats as $sub_cat ) : $sub_query = new WP_Query( array( ‘category__in’ => array( $sub_cat->term_id ), ‘posts_per_page’ => -1) ); if ( $sub_query->have_posts() ) : while( $sub_query->have_posts() ) : $sub_query->the_post(); //your output// endwhile; endif; endforeach; endif; ?> http://codex.wordpress.org/Function_Reference/get_categories http://codex.wordpress.org/Class_Reference/WP_Query

How to sort categories by id in wordpress admin

The following should work… add_action(‘get_terms_args’,’my_order_cats’,10,2); function my_order_cats($args,$taxonomies){ //Check we are admin side if(is_admin()){ $taxonomy = $taxonomies[0]; $screen = get_current_screen(); //Check screen ID and taxonomy and changes $args where appropriate. if(($screen->id==’edit-category’||$screen->id==’post’) && $taxonomy==’category’){ $args[‘orderby’]=’id’; //preserves order of subcategories. $args[‘order’]=’asc’; //or desc } } return $args; } It preserves the order of subcategories (i.e. children always appear … Read more

Assign an icon to a category post

As far as I can see from the link you mentioned, there are no icons for categories, only avatars for authors. Is that what you mean? If you do want category icons, take a look at some plugins in the WordPress.org directory. Here’s an example: http://wordpress.org/extend/plugins/category-icons/

Show pages and articles in category search result

To display pages in a category archive index: Add category taxonomy to the Page post-type Static pages, by default, do not have any taxonomies associated with them, including the category taxonomy. So you need to register the category taxonomy for the page post type, using register_taxonomy_for_object_type(): function wpse94150_register_category_taxonomy_for_page_post_type() { register_taxonomy_for_object_type( ‘category’, ‘page’ ); } add_action( … Read more

Custom category link in wp_list_categories()

Okay, I’ve found the answer. This is not possible. So I had to build the permalink manually this way: <ul class=”list-items categories”> <?php $category_ids = get_all_category_ids(); $args = array( ‘orderby’ => ‘slug’, ‘parent’ => 0 ); $categories = get_categories( $args ); foreach ( $categories as $category ) { echo ‘<li><a href=”‘ . $category->slug . ‘” … Read more