Main Menu
Sub Menu

Display Category Image

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 . '" />';
Last updated on Mar 19, 2022

Need More Clarification?

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.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.