# Ticker News

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

### HTML/JavaScript

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

Label Options: `Label Name` or `recent`

Color Attribute: This attribute is optional and must be entered only if you want to add a custom color.

**Example:**

<figure><img src="https://3691344887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqQzRWtJHRrbdZmizmyK%2Fuploads%2FjshhSAAFs1DYDkRlt6oD%2Fimage.png?alt=media&#x26;token=996b92f0-2c08-4857-84e7-1fc963c51112" alt="Ticker news" width="451"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="https://3691344887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqQzRWtJHRrbdZmizmyK%2Fuploads%2FQqI2s2L421o0R3bbjBsZ%2Fimage.png?alt=media&#x26;token=d116ca78-78da-4c30-9f82-a040a4c8fb29" alt="Popular posts" width="444"><figcaption></figcaption></figure>
