# Post Gadgets

Access your blog **Layout** > and click on the **Add a Gadget** > **HTML/JavaScript** > in the **Sidebar** section.

Shortcode: `{getPosts} $results={Number of Results} $label={Your Label} $type={Gadget Type}`

Type Options: `default`, `comments`

Label Options: `Label Name` or `recent`

**Posts Example:**

<figure><img src="https://1124437440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3G6yd0cYoXKC2yPqezi1%2Fuploads%2FeR9BYylzOJIV36iYSqhu%2Fimage.png?alt=media&#x26;token=d6741d4c-4007-4144-a460-9be7640da32c" alt="Post Gadgets" width="452"><figcaption></figcaption></figure>

**Comments Example:**

<figure><img src="https://content.gitbook.com/content/3G6yd0cYoXKC2yPqezi1/blobs/u8m9TGUmBCrFLBJ85Adl/image.png" alt="Comments" width="451"><figcaption></figcaption></figure>

{% hint style="info" %}
INFO: For the `comments` type, the `$label={}` attribute is not required.
{% endhint %}
