> 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/magspot/getting-started/related-posts.md).

# Related Posts

Access your blog **Layout** > and click on the **Edit Icon** > in the **Related Posts** gadget.

Shortcode: `$results={Number of Results} $style={Gadget Style} $color={Hex Color}`&#x20;

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

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

**Example:**

<figure><img src="https://3691344887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqQzRWtJHRrbdZmizmyK%2Fuploads%2FdEosNywD3HXHLROFKhDr%2Fimage.png?alt=media&amp;token=ebe0fd00-6403-439e-975c-9939d4849bad" alt="Related posts" width="493"><figcaption></figcaption></figure>
