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.
Last updated
Was this helpful?
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.
Purpose: Displays the most popular content from your hub based on user engagement (views).
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.
Customization: Accepts all parameters supported by the [content] shortcode, allowing full control over the layout and behavior. Please read this documentation for more information.
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:
Example
Description
[popular_now n_days="7"]
Displays the most popular content from the past 7 days.
[popular_now n_days="90"]
Displays the most popular content from the past 90 days.
Last updated
Was this helpful?
Was this helpful?