Main Menu
Sub Menu

[wpdm_trending] – Display Trending Downloads

The [wpdm_trending] shortcode displays the most downloaded packages within a specified time period, perfect for showcasing popular downloads on your site.

Basic Usage

[wpdm_trending]

This displays the top 5 trending downloads from the last 7 days.

Parameters

Parameter Type Default Description
days integer 7 Number of days to look back for download statistics
limit integer 5 Maximum number of packages to display
template string link-template-default.php Link template to use for displaying packages
cols integer 3 Number of grid columns on desktop
colspad integer 2 Number of grid columns on tablet
colsphone integer 1 Number of grid columns on mobile
categories string (empty) Comma-separated category slugs to filter by
heading string (empty) Section heading text (displays with 🔥 emoji)
show_badge integer 1 Show ranking badge (#1, #2, etc.). Set to 0 to hide.
show_count integer 1 Show download count for the period. Set to 0 to hide.
min_downloads integer 1 Minimum downloads required to qualify as trending
cache_minutes integer 30 How long to cache results (in minutes)

Examples

Top 10 downloads from the last 30 days

[wpdm_trending days="30" limit="10"]

With a custom heading

[wpdm_trending heading="🔥 Hot Downloads This Week"]

Filter by specific categories

[wpdm_trending categories="software,documents"]

4-column card layout

[wpdm_trending template="link-template-card.php" cols="4"]

Without badges and download counts

[wpdm_trending show_badge="0" show_count="0"]

[wpdm_trending min_downloads="10" days="14"]

Full customization example

[wpdm_trending days="30" limit="8" cols="4" colspad="2" colsphone="1" heading="Popular Downloads" categories="software" min_downloads="5" cache_minutes="60"]

Features

  • Real download data - Queries actual download statistics from the database
  • Ranking badges - Top 3 items get a golden "hot" badge, others get a standard indigo badge
  • Download count display - Shows how many times each package was downloaded during the period
  • Category filtering - Limit results to specific categories
  • Access control - Respects the "Hide All" setting for restricted packages
  • Caching - Results are cached for performance (30 minutes by default)
  • Responsive grid - Adjustable columns for desktop, tablet, and mobile
  • Template support - Works with any link template

Notes

  • The shortcode queries the ahm_download_stats table to get accurate download counts for the specified period
  • Only published packages of type wpdmpro are included
  • If no trending packages are found, a message "No trending downloads found for this period" is displayed
  • The cache is unique per user and parameter combination, ensuring accurate results based on access permissions

Since: WordPress Download Manager 7.0

Last updated on Jan 11, 2026

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.