> 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/spotlight/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://2090754335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgk0Bukp3MlddTFYiGbP%2Fuploads%2Ff91tfxywhQakHJsGWyzD%2Ffeatured-posts.webp?alt=media&amp;token=55b90f4d-bbab-454f-b56e-00431cfb7aea" alt="HTML/JavaScript" width="375"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="https://2090754335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLgk0Bukp3MlddTFYiGbP%2Fuploads%2Fo7ynGQYEUY6ikyjeYbOf%2Ffeatured-posts-popular.webp?alt=media&amp;token=47fbece0-c0f4-45d8-b9af-dbc6ba00f20f" alt="Popular posts" width="375"><figcaption></figcaption></figure>
