> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# {{#getPost}} helper

- URL: https://getpublii.com/dev/getpost-helper/
- Published: 2018-12-25T21:48:29.028Z
- Updated: 2024-02-08T09:28:03.133Z
- Description: {{getPost}} is a helper used to retrieve post data regardless of the current context. Syntax: {{#getPost postID}} ... {{/getPost}} Example: {{#getPost 10}} <h2>{{title}}</h2> {{{excerpt}}} {{/getPost}} IMPORTANT: It…
- Author: Tomasz Dziuda
- Tags: Helpers

**{{getPost}}** is a helper used to retrieve post data regardless of the current context.

Syntax:

```handlebars
{{#getPost postID}}
...
{{/getPost}}
```

Example:

```handlebars
{{#getPost 10}}
   <h2>{{title}}</h2>
   {{{excerpt}}}
{{/getPost}}
```

**IMPORTANT:** It requires availability of the `@website.contentStructure` global variable
