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

# {{#getAuthor}} helper

- URL: https://getpublii.com/dev/getauthor-helper/
- Published: 2022-03-22T16:46:15.395Z
- Updated: 2024-02-08T09:19:43.637Z
- Description: {{#getAuthor}} is a helper used to retrieve author data regardless of the current context. Syntax: {{#getAuthor AUTHOR\_ID}} ... {{/getAuthor}} Alternative syntax: {{#getAuthor "AUTHOR\_USERNAME"}} ... {{/getAuthor}}…
- Author: Tomasz Dziuda
- Tags: Helpers

**{{#getAuthor}}** is a helper used to retrieve author data regardless of the current context.

Syntax:

```handlebars
{{#getAuthor AUTHOR_ID}}
...
{{/getAuthor}}
```

Alternative syntax:

```handlebars
{{#getAuthor "AUTHOR_USERNAME"}}
...
{{/getAuthor}}
```

Example:

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

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