# Ability to place custom fields in post header?

**URL:** https://meta.discourse.org/t/ability-to-place-custom-fields-in-post-header/106928
**Category:** Support
**Created:** [January 18, 2019, 4:43pm UTC](https://meta.discourse.org/t/ability-to-place-custom-fields-in-post-header/106928 "2019-01-18T16:43:16Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [August 17, 2020, 6:04pm UTC](https://meta.discourse.org/t/ability-to-place-custom-fields-in-post-header/106928/4 "2020-08-17T18:04:55Z")

</div>

> [@jonathan-s](#):
>
> what’s missing in this explanation is how you insert the javascript snippet and where you do it.

The code I posted above with the `console.log` statement that returns the post attributes, is meant to go in a theme or a theme component. For a general overview of developing Discourse themes, see [Developer’s guide to Discourse Themes](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648). For details about using the Plugin API methods in a theme, instead of a plugin, see [https://meta.discourse.org/t/using-the-pluginapi-in-site-customizations/41281](https://meta.discourse.org/t/using-the-pluginapi-in-site-customizations/41281).

---

_[View the full topic](https://meta.discourse.org/t/ability-to-place-custom-fields-in-post-header/106928)._
