> For the complete documentation index, see [llms.txt](https://docs.probloggertemplates.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.probloggertemplates.com/guides/labeauty/getting-started/trending-posts.md).

# Trending Posts

Access your blog **Layout** > and click on the **Add a Gadget** > **HTML/JavaScript** or **Popular Posts** > in the **Trending Posts** section.

### HTML/JavaScript&#x20;

Shortcode: `{getPosts} $results={Number of Results} $label={Your Label}`&#x20;

Label Options: `Label Name` or `recent`

**Example:**

<figure><img src="/files/5imGh0oYrcNz0TMRyZXF" alt="HTML/JavaScript" width="449"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="/files/JPdVCQgieBz3wbhXSrjy" alt="Popular Posts" width="440"><figcaption></figcaption></figure>
