although @roikles offers a way to do it, I don’t think it is very flexible as you will have to go back in the code when you want to add a new category.
Another way of doing it can be to add the image of the subcategory as the description of the subcategory.
To be able to do so, you will first need to allow XHTML in category descriptions. Add this line to your functions.php
:
remove_filter( 'pre_term_description', 'wp_filter_kses' );
Then you can echo that description with wp_list_categories
Related Posts:
- Custom Walker for wp_list_categories
- Create menu locations for each category in wordpress
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Custom Nav Walker menu – Display category count
- Reflect nested categories in appearance > menus
- retrieve thumbnail from post ID of best selling product in category
- Category menu item and its last 10 posts as sub-menu
- How to split the categories of subcategories with thumbnails
- Is there a function to cause empty categories not to show in menus?
- Assign different category colours to different categories in the main menu
- Keep active class in post page
- Auto add pages to category menu
- How to show empty category in admin menus search
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Automatically add product_categories to nav_menu
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- Custom Loop through category menu to include sub categories
- Add a specific category at a specific place to the menu that uses wp_list_pages
- Multiple menu items highlighted
- Code to pull in a PHP file named after the category ID
- wp_nav_menu not highlighting the current category when viewing a single post
- in_category() works in single.php but not in page.php?
- Add title, post content, and category like add_post_meta and update_post_meta
- Show recent posts in menu?
- Show only one category
- Show Different Custom Menu on Different Category Pages
- Open subcategories in submenu on click in primary menu
- How to add Categories to the top menu of the website?
- Taxonomy filter all children
- hover image appears below placeholder instead of overlayed
- combine Code 1 with Code 2
- Looking for the best solution to build this Blog structure? Picture attached?
- Nav menu category links not showing
- Show number of articles in menu
- How to show only one category in breadcrumb navigation
- Automatically adding categories and authors in custom menu?
- Second level subcategory
- Hard coded main navigation
- Highlight wp_nav_menu when category is selected
- query in category.php repeats itself
- Class active for Archive link – looped out
- Remove product category placeholder image (Woocomerce)
- Change thumbnail image depending product category
- Counter in loop in foreach
- Menus don’t work after 4.4 [closed]
- category permalinks
- Create menu / submenu from category subcategory and posts
- wp_list_categories in in nav_menu
- Different menu navigation per category
- WP admin broken. Not saving catgories or adding categories to menu
- Creating Category Specific menus
- Woo Framework: woo_cat_featured not populating
- Redirect to another page using contact form 7? [closed]
- Different Output for “Every Other” Foreach Statement?
- get taxonomy thumbnail and use it as a variable in code
- Building Menu from Woocommerce Product Categories
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Show subcategories on a parent category page
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- How to change the thumbnail size to a specific category?
- Give Children Unique ID’s
- Change div background acording to the selected category
- Thumbnail for categories / taxonomies plugin?
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- how to nest specific category thumbnails inside different containers
- Searching for a category returns nothing if category is empty
- function query_posts disabling current_page_menu class
- Show different menu on each woocommerce category page
- Theme for subcategories
- Same menu for different taxonomies to reach different content
- Multiple categories for one menu item?
- How to get category id’s which are added in main menu?
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- Link from navbar to categories
- Exclude category from foreach loop
- Pagination doesn’t work on multiple categories
- Theme modification for custom category menus
- Change appearance based on category but post is in two main categories
- Category foreach Paging
- Category menu that filters out empty categories
- Conditions for single post
- Automatic menu creation for pages with categories?
- How can I add a Categories page link to a menu? [closed]
- Right way for setting categories
- Display only the latest post
- Make three menus with three category levels
- Paginating a list of all posts collected by category titles
- how to edit wp category widget
- Remove the current item from a menu
- Call Current Category
- Page permalink rewrite
- Chained drop-down menu for custom taxonomy using chained.js
- How to prevent uppercasing of menu titles
- Update wordpress menu with woocommerce products
- Adding 400 product categories with their hierarchy to a navigation menu
- Can’t assign menu parent id or menu item breaks
- Hide product categories if empty by leaving them positioned in the same place in the menu