# Popular Now

### **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](/publishing/shortcodes/content.md) 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:**

| **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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wavecast.io/publishing/shortcodes/popular-now.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
