# 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

Shortcode: `{getPosts} $label={Label Name}`&#x20;

Label Name: `Custom Label`, `recent`

The `$label={}` attribute is optional! The default value is `recent`.

**Example:**

<figure><img src="https://2090754335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgk0Bukp3MlddTFYiGbP%2Fuploads%2FOfIx1L12GesJbhfT9i0U%2Ftrending-posts.webp?alt=media&#x26;token=b4ad6ce4-fe7a-404f-bcd0-8dc6554246ad" alt="HTML/JavaScript" width="375"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="https://2090754335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgk0Bukp3MlddTFYiGbP%2Fuploads%2FjD2sLYVms3fIXSpyjjVa%2Ftrending-posts-popular.webp?alt=media&#x26;token=30693607-f573-4f55-9859-b54d109658a8" alt="Popular posts" width="375"><figcaption></figcaption></figure>
