how to display subcategory images in main category
-
Hello every one
i am using this code to display the only subcategories in the main category page<?php if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != "") { echo ""; echo "<ul>"; wp_list_categories('orderby=id&show_count=0&title_li= &use_desc_for_title=1&child_of='.$this_category->cat_ID); echo "</ul>"; } } ?>
this codes works perfectly but i want to add image for the subcategories links (like post thumbnail) that image link to the subcategory?
1) how i can add image for categories?
2) how i can display thats images to the subcategories list?
is this possible?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘how to display subcategory images in main category’ is closed to new replies.