In Category Archive
Use the following code snippet to display the category image for the currently displayed category in taxonomy-wpdmcategory.php
:
$category_obj = get_queried_object(); $category = WPDM()->category->get($category_obj->term_id); // Make sure $term_id is set echo '<img src="' . $category->icon . '" alt="' . $category->name . '" />';
Somewhere Else
Use the following code snippet to display the category image for the provided category term:
$category = WPDM()->category->get($term_id); // Make sure $term_id is set echo '<img src="' . $category->icon . '" alt="' . $category->name . '" />';
For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.