How can I automatically display a visual archive of subcategory posts [and thumbnails] separate from Parent category?

WordPress should automatically be displaying archives for each category using files from your theme (or child theme – more on that lower down) from the file hierarchy. The specific order is: category-slug.php category-ID.php category.php archive.php index.php It sounds like you need to create or edit your category.php file unless you have ID or slug based … Read more

WordPress category widget only show categories with children

I would suggest something like this: function exclude_widget_subcategories($args){ $all_categories = get_terms(‘category’, array(‘parent’ => 0, ‘fields’ => ‘ids’)); $exclude_categories = array(); foreach($all_categories as $category_id){ $children = get_term_children($category_id, ‘category’); if(count($children)!=0){ $exclude_categories[] = $category_id; } } $exclude = implode(“,”,$exclude_categories); // The IDs of the excluding categories $args[“exclude”] = $exclude; return $args; } add_filter(“widget_categories_args”,”exclude_widget_subcategories”); get_terms(‘category’, array(‘parent’ => 0, ‘fields’ … Read more