# 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&#x20;

Shortcode: `{getPosts} $label={Your Label} $style={Gadget Style} $color={Hex Color}`&#x20;

Label Options: `Label Name` or `recent`&#x20;

Style Options: `1`, `2`, `3`, `4`, `5`

Color Attribute: This attribute is optional and must be entered only if you want to add a custom color.

**Example:**

<figure><img src="/files/KuEZQw2EFCvUMNLatAGG" alt="Featured posts" width="452"><figcaption></figcaption></figure>

### Popular Posts

<figure><img src="/files/SSyanDXbqvuBr8Dx8KIG" alt="Popular posts" width="443"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.probloggertemplates.com/guides/magspot/getting-started/featured-posts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
