> 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/hypermag/getting-started/post-gadgets.md).

# Post Gadgets

Access your blog **Layout** > and click on the **Add a Gadget** > **HTML/JavaScript** > in the **Sidebar** or **Footer Widgets** sections.

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

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

Number of Results: The attribute `$results={}` is optional! Default is `4`.

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%2FrTRrF1PmNj5BUCkE8WXY%2Fimage.png?alt=media&amp;token=72fccc87-0c1a-4e60-ac06-739ba9859ca9" alt="Post gadgets" width="449"><figcaption></figcaption></figure>
