Total Downloads Count for Specific Product Categories or Tags

Posted by: Reza

23rd February 2022, 4:25 am



23 Feb 2022
4:25 am

Hi, is it possible to display the total number of downloads for products with certain categories or tags?

  • Richard Webster


    23 Feb 2022
    10:47 am

    Hi mate, download counts for a product are stored on the product as meta data, the key being 'somdn_dlcount'. You could do a WooCommerce product query combined with a meta query to get all the products in a category or tag with a download count and loop through them to add the counts together using get_post_meta()

    Last modified: 23rd February 2022, 10:47 am by Richard Webster

This topic is closed to new replies.