> ## 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.

# {{#getTag}} helper

- URL: https://getpublii.com/dev/gettag-helper/
- Published: 2019-02-13T22:19:32.327Z
- Updated: 2025-02-21T06:03:28.548Z
- Description: {{getTag}} is a helper used to retrieve tag data regardless of the current context. Syntax: {{#getTag tagID}} ... {{/getTag}} Example: {{#getTag 10}} <a href="{{url}}">{{name}}</a> {{/getTag}} IMPORTANT: It…
- Author: Tomasz Dziuda
- Tags: Helpers

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

Syntax:

```handlebars
{{#getTag tagID}}
...
{{/getTag}}
```

Example:

```handlebars
{{#getTag 10}}
<a href="{{url}}">{{name}}</a>
{{/getTag}}
```

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