> For the complete documentation index, see [llms.txt](https://docs.probloggertemplates.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.probloggertemplates.com/guides/smartmag/getting-started/content-blocks.md).

# Content Blocks

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

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

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

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

Block Type: `block1`, `block2`, `list`, `grid1`, `grid2`, `col`, `video`

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

**Example:**

<figure><img src="/files/PWFJRiL9L334oviW4Z4G" alt="Content blocks" width="450"><figcaption></figcaption></figure>

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