Popular Now

This shortcode is used to display the most popular content across your hub. It provides a simple and efficient way to showcase trending content based on views.

Functionality

  1. Purpose: Displays the most popular content from your hub based on user engagement (views).

  2. Defaults:

    • Content selection: The last 30 most popular items within the past 30 days.

    • Sorting: Defaults to descending order by the number of views.

    • Caching: Results are cached for two hours to optimize performance.

    • Exclusions: Does not display event-type content.

    • Pagination: Not supported for this shortcode.

  3. Customization: Accepts all parameters supported by the [content] shortcode, allowing full control over the layout and behavior. Please read this documentation for more information.


Parameters

The n_days parameter specifies the number of past days to consider when determining the most popular content.

Details:

  • Type: Integer

  • Default Value: 30

  • Usage: Adjust this parameter to fetch popular content from a specific timeframe. For example:

    • Set n_days=7 to display content from the past week.

    • Set n_days=90 to display content from the last 90 days.

Example:

Last updated