Length of Category Names

1.: Yes (Slugs differ then, but no need for you to re-categorize each post) 2.: As you wrote: “Information Technology”. As a rule of thumb, Category Names should be between 2 and 26 characters, the actual length depends on your site and your needs as there is no hard nor soft limit to category length … Read more

Post belonging to many categories

If the template is using the permalink when generating the posts, it retrieves all the categories for a given post and then grabs the first category it gets after sorting them by Id. I see two ways around this: If you want to recreate your categories with the preferred order, then you should be set. … Read more

Exclude a category name using cat name

$recentPosts = new WP_Query(); $recentPosts->query(‘cat=-3’); //-3 makes sure it shows all categories except for ID number 3 while ($recentPosts->have_posts()) : $recentPosts->the_post(); the_title(); the_content(); endwhile; Would something like this Work?

Grouping post-types in loop

Yep, I don’t think this is something you can easily do natively. Two ways that I see: Use posts_orderby to modify SQL request and order posts by post type, then just need to check so headings don’t repeat. Instead of looping through posts in order returned, take array of those and sort by post type … Read more

Author Page – List of categories plus number of posts in that category

you can try a much less elegant but a working solution which is to get all of the users posts and count their categories: $query = new WP_Query(array( ‘author’ => $curauth->ID, ‘posts_per_page’ => -1 ) ); if ($query->have_posts()){ $u_cats = array(); while ($query->have_posts()){ $query->the_post(); $terms = wp_get_object_terms( $post->ID, ‘category’); foreach ($terms as $term){ if (is_array($u_cats[$term->term_id])){ … Read more