# Additional field for posts (SOLVED)

**URL:** <https://forum.ghost.org/t/additional-field-for-posts-solved/26231>\
**Category:** Themes\
**Created:** [October 12, 2021, 4:40pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231 "2021-10-12T16:40:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 12, 2021, 4:40pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/1 "2021-10-12T16:40:37Z")

</div>

Is it possible to add another field to the post sidebar in the editor, which would then be included in the published post?

I use the Excerpt field for social media workflow, and don’t want it included in total in the post (especially since it is often a copy of the first graf). But, I sometimes would like to have a subhead at the top of the post. Is there a way to add a field for that? I could then do an IF in the code to include it if it exists.

Thanks!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [October 12, 2021, 5:07pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/2 "2021-10-12T17:07:42Z")

</div>

Internal tags are your best bet here!

You can do something like

```auto
{{#has tag="hash-show-excerpt"}}
  {{excerpt}}
{{/has}}

```

If you have a post where you _want_ to show the excerpt, you can add the `#show-excerpt` tag to it

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 12, 2021, 7:02pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/3 "2021-10-12T19:02:14Z")

</div>

Thanks for the reply!

However, I want to use the excerpt field in every post as the excerpt for social media, and as the excerpt in the post card.

What I need is a SECOND field into which I can type a subhead and have it show in the post only if it has content. I know how to use the handlebars to check for it in the post and show it; what I don’t know is how to add a second field to the editor sidebar.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [October 12, 2021, 7:37pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/4 "2021-10-12T19:37:06Z")

</div>

> [@BruceInLouisville](#):
>
> show in the post only if it has content

I don’t follow for this part - Are you basically saying you’re looking for something like this on a post page?

```auto
{{excerpt}}
{{more_context}}
{{feature_image}}
{{content}}

```

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 12, 2021, 8:38pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/5 "2021-10-12T20:38:52Z")

</div>

I am using the excerpt field for social media, and do not want it to show in the post at all. (I am feeding my social media automation via the RSS feed, which includes the excerpt.)

Basically, I want

– title –  
– subhead if exists –  
– body –

So, I want some way to add a subhead below the title, but only on some posts.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [October 12, 2021, 9:15pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/6 "2021-10-12T21:15:26Z")

</div>

Can you start your post with an HTML card that contains the subhead? e.g.

```auto
<div class="subhead">
<p> Paragraph 1</p>
<p> Paragraph 2</p>
</div>

```

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 12, 2021, 9:28pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/7 "2021-10-12T21:28:51Z")

</div>

Sure – that would be fine, and easy to do.

So that I don’t have to do a bunch of experimentation with post.hbs 😉, how would I code it to show under the headline and NOT in the post content? If I can figure that out, I can edit the post.hbs file to do what I want.

---

<div class="post-metadata">

**Author:** ![Bert\_O](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bert_o/32/13856_2.png) [@Bert\_O](https://forum.ghost.org/u/Bert_O)\
**Post date:** [October 12, 2021, 9:46pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/8 "2021-10-12T21:46:00Z")

</div>

If you are using the excerpt for post cards and social media, couldn’t you just repurpose the Facebook description field {{og\_description}} or even the meta field {{meta\_description}} and then only display this as and when required by using a private tag e.g #displayexcerpt

Then add to your theme using the Has helper.

{{#has tag=“#displayexcerpt”}}  
{{og\_description}}  
{{/has}}

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 13, 2021, 12:02am UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/9 "2021-10-13T00:02:02Z")

</div>

Thank you! That’s a really interesting idea. I don’t use any of those fields, typically, because I use CoSchedule to post to FB and Twitter. Using the meta field has some interesting possibilities, because Google typically picks up the excerpt, but often truncates it. If I use the meta field for a subhead, though, it would be much shorter and (typically) still be directly related to the story.

[[off to try it]]

---

<div class="post-metadata">

**Author:** ![Bert\_O](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bert_o/32/13856_2.png) [@Bert\_O](https://forum.ghost.org/u/Bert_O)\
**Post date:** [October 13, 2021, 8:54am UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/10 "2021-10-13T08:54:52Z")

</div>

Ghost has no plans to introduce custom fields so they are the only options we are left to play with. I hope it works out.

---

<div class="post-metadata">

**Author:** ![charlesloubao](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/charlesloubao/32/10143_2.png) [@charlesloubao](https://forum.ghost.org/u/charlesloubao)\
**Post date:** [October 14, 2021, 1:24pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/11 "2021-10-14T13:24:56Z")

</div>

I know this post is marked as solved, but I have created a tool that does exactly what you are looking for. With [Gaspr.io](http://Gaspr.io) [https://gaspr.io/](https://gaspr.io/) you can add custom fields to Ghost in a few steps. It provides an interface to manage custom fields and create templates using Handlebars to display the data.

If you are interested let me know and I will help you get started 🙂

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 14, 2021, 4:51pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/12 "2021-10-14T16:51:28Z")

</div>

Yes, so far it looks like it is. I have to preview the post to see the subhead (of course) and it took me a few tries to get the formatting right, but it’s now an option. And using the meta field will be good as well, I think.

---

<div class="post-metadata">

**Author:** ![BruceInLouisville](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/bruceinlouisville/32/40997_2.png) [@BruceInLouisville](https://forum.ghost.org/u/BruceInLouisville)\
**Post date:** [October 14, 2021, 5:04pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/13 "2021-10-14T17:04:13Z")

</div>

Thanks for the offer! I’m good for now, as I don’t need other fields. However, I did look at your product, including watching the video. Couple of questions:

1. Where are the templates stored, on our Ghost installation or on your site?
2. If they are stored on your site, when they are inserted do they create a static HTML block, or does the post have to contact your site every time it is refreshed?

Thanks for jumping in – Gaspr looks pretty interesting!

---

<div class="post-metadata">

**Author:** ![charlesloubao](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/charlesloubao/32/10143_2.png) [@charlesloubao](https://forum.ghost.org/u/charlesloubao)\
**Post date:** [October 19, 2021, 3:22pm UTC](https://forum.ghost.org/t/additional-field-for-posts-solved/26231/15 "2021-10-19T15:22:24Z")

</div>

Thank you Bruce. Answering your questions:

1. The templates are stored on our site.
2. The way it currently works is, the app will generate static HTML with the template and the data it finds for that page/post and updates the post itself with this new html block. It will do that everytime a change is made to the post.
