# Insert, Read and Update Post custom fields from plugin

**URL:** https://meta.discourse.org/t/insert-read-and-update-post-custom-fields-from-plugin/49962
**Category:** Development
**Created:** [September 10, 2016, 10:34am UTC](https://meta.discourse.org/t/insert-read-and-update-post-custom-fields-from-plugin/49962 "2016-09-10T10:34:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ShankarG](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shankarg/32/121418_2.png) [@ShankarG](https://meta.discourse.org/u/ShankarG)
#### Post date: [September 10, 2016, 10:34am UTC](https://meta.discourse.org/t/insert-read-and-update-post-custom-fields-from-plugin/49962/1 "2016-09-10T10:34:42Z")

</div>

I’m new to rails and ember and also i can’t find any documentation for using post custom fields in plugin. I have added two additional fields to post composer form (using plugin outlet) like below

 ![](https://global.discourse-cdn.com/meta/original/3X/6/9/6930ebb6664161dc3f4d5b20b02e4ca20b8660f8.png)

I need to save this two fields to post custom fields table and retrieve it. Any code sample or any existing plugin code reference will be appreciated.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [September 11, 2016, 12:21pm UTC](https://meta.discourse.org/t/insert-read-and-update-post-custom-fields-from-plugin/49962/2 "2016-09-11T12:21:32Z")

</div>

I’m no plugin expert, but I did notice that several existing plugins do this, the simplest one I can think of being the [links category](https://github.com/danskdynamit/discourse-links-category) plugin.
