> 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/featured-posts.md).

# Featured Posts

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

### HTML/JavaScript

Shortcode: `{getPosts} $label={Label Name}`&#x20;

Label Name: `Custom Label`, `recent`

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%2F1pKKeenVuuL3kVlzdlnS%2Fimage.png?alt=media&amp;token=5bcfea8f-04f1-4caf-95d3-9a7d7b9fdc5c" alt="HTML/JavaScript" width="451"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="https://3541635086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtjauJ2SCTA4KF9vk4mp7%2Fuploads%2FBhXIKdIMNnGXe4hVXdsL%2Fimage.png?alt=media&amp;token=ad388921-6f2a-409f-8b01-faa56a8e5a53" alt="Popular posts" width="448"><figcaption></figcaption></figure>
