# 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="https://1553903626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYWCQtvBnmRjgLmVjNwy9%2Fuploads%2FIPsbbIrlS05hudrWdq4n%2Fimage.png?alt=media&#x26;token=be35c24d-4b32-4651-ada1-2a17238dd833" alt="HTML/JavaScript" width="449"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="https://1553903626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYWCQtvBnmRjgLmVjNwy9%2Fuploads%2Fas7bIcHMxjGcUTvbhKUV%2Fimage.png?alt=media&#x26;token=20be9a2d-9e12-4084-bddd-838d2065cb16" alt="Popular Posts" width="440"><figcaption></figcaption></figure>
