# Multiple authors in one byline

**URL:** <https://forum.ghost.org/t/multiple-authors-in-one-byline/50427>\
**Category:** Using Ghost\
**Created:** [September 20, 2024, 12:00pm UTC](https://forum.ghost.org/t/multiple-authors-in-one-byline/50427 "2024-09-20T12:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostyop](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ghostyop/32/34008_2.png) [@ghostyop](https://forum.ghost.org/u/ghostyop)\
**Post date:** [September 20, 2024, 12:00pm UTC](https://forum.ghost.org/t/multiple-authors-in-one-byline/50427/1 "2024-09-20T12:00:59Z")

</div>

We’re using the Journal theme for a small blog with multiple contributors. Currently, if an article is written by more than one author, only the first author gets credited in the byline at the top of the post.

[This post](https://dz.socialist-core.org/p/ec6b07f5-6821-4c20-baa4-83fbdc6785ad/), for instance, has three authors in the sidebar but only the first appears at the top of the page. The screenshot below shows the situation as well:

 ![Screenshot 2024-09-20 at 8.58.59 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/d/6/d6aff3ae8cc87aea27ae659a56bf32ce32a00c5e.jpeg)

I’m hoping to modify the theme or toggle a setting somewhere that allows a list of authors to appear where it currently says “By Dynamic Zero Editing Board” on the left side of the screenshot.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 20, 2024, 12:40pm UTC](https://forum.ghost.org/t/multiple-authors-in-one-byline/50427/2 "2024-09-20T12:40:05Z")

</div>

This is theme-specific, but shouldn’t be hard to change if you’re able to edit the theme.

---

<div class="post-metadata">

**Author:** ![ghostyop](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ghostyop/32/34008_2.png) [@ghostyop](https://forum.ghost.org/u/ghostyop)\
**Post date:** [September 20, 2024, 3:59pm UTC](https://forum.ghost.org/t/multiple-authors-in-one-byline/50427/3 "2024-09-20T15:59:58Z")

</div>

Thanks! Yes i see the author context in the [Journal theme](https://github.com/TryGhost/Journal?tab=readme-ov-file) post.hbs, which contains the following relevant section:

```auto
<span class="gh-article-meta">
                {{#primary_author}}By <a href="{{url}}">{{name}}</a>{{/primary_author}}
                {{#if primary_tag}}
                    in
                    <a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
                {{/if}}
                —
                <time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
            </span> 

```

However, I don’t understand the Primary tag. It’s not mentioned in the [Author page in the docs](https://ghost.org/docs/themes/contexts/author/#pagination). I also don’t know how to iterate in the author list to produce the string, “By author\_1, author\_2, and author\_3” or “By author\_1 and author\_2”. Does anyone know where I can find information on that? Does another theme have a code block like that I can reference?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 20, 2024, 4:06pm UTC](https://forum.ghost.org/t/multiple-authors-in-one-byline/50427/4 "2024-09-20T16:06:27Z")

</div>

The primary\_tag part is what’s displaying the name of the tag. It’s not relevant for authors.

Take a look at how Casper does it - starting around line 35.

> <https://github.com/TryGhost/Casper/blob/main/post.hbs>

You’ll need different HTML, but that shows you how to loop through the authors with foreach and write out some content for each.
