# Content Blocks

Access your blog **Layout** > and click on the **Add a Gadget** > **HTML/JavaScript** > in the **Content Blocks** sections.

Shortcode: `{getPosts} $label={Label Name} $type={Block Type} $results={Number of Results}`&#x20;

Label Name: `Custom Label`, `recent`&#x20;

Block Type: `block1`, `block2`, `list`, `grid`, `story`, `video`&#x20;

Number of Results: This attribute is optional! Add it to define a custom value.

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

**Example:**

<figure><img src="https://3541635086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjauJ2SCTA4KF9vk4mp7%2Fuploads%2FbnJu95sAq9GGfDLhAyMR%2Fimage.png?alt=media&#x26;token=711ab238-f191-4d55-a756-bec50ca3f5bc" alt="Content blocks" width="456"><figcaption></figcaption></figure>

{% hint style="info" %}
INFO: The number of results for types block1, story and video cannot be changed.
{% endhint %}
