<p>I know questions similar to this have been asked in the past. But I still don't feel like I am getting a full picture so feel there is benefit in asking it again. </p>

<p>I want to add extra data to a post after that post is saved. In Wordpress world this is called meta data. And can be achieved by simply calling <code>update_post_meta($post_id, $meta_key, $meta_value);</code>  (<em>I'm not saying Wordpress is better I'm just giving context of where I am coming from.</em>)</p>

<p>I know how to hook into the 'entries.saveEntry' event in my plugin but I am unclear where to save this extra data or how.</p>

<p>The extra data is not to be seen by the user and will likely be removed and updated each time the post is updated.</p>

CC BY-SA 3.0
2015-09-13T06:28:15.597Z
I'm about 0% familiar with Wordpress. What exactly is the extra data you want to save? Typically I'd say it would go into a custom field.
Brad Bell
CC BY-SA 3.0
2015-09-18T07:44:24.543Z
Sorry been away - in this instance I am grabbing bible references parsed from the entry content and wanting to save it against the entry. Do I have to create a new field? How do I do that programmatically through the plugin? And how do I then attach it to the entry?
mattl
<plugin-development><entries><custom-field>
Adding extra data to an element
# Adding extra data to an element

(Asked by: username_0 on 2015-09-12)

I know questions similar to this have been asked in the past. But I still don't feel like I am getting a full picture so feel there is benefit in asking it again.

I want to add extra data to a post after that post is saved. In Wordpress world this is called meta data. And can be achieved by simply calling `update_post_meta($post_id, $meta_key, $meta_value);` (*I'm not saying Wordpress is better I'm just giving context of where I am coming from.*)

I know how to hook into the 'entries.saveEntry' event in my plugin but I am unclear where to save this extra data or how.

The extra data is not to be seen by the user and will likely be removed and updated each time the post is updated.

**Tags:** plugin-development, entries, custom-field
> **Comments:**
> **username_1**: I'm about 0% familiar with Wordpress. What exactly is the extra data you want to save? Typically I'd say it would go into a custom field.  
> **username_0**: Sorry been away - in this instance I am grabbing bible references parsed from the entry content and wanting to save it against the entry. Do I have to create a new field? How do I do that programmatically through the plugin? And how do I then attach it to the entry?  

---

## 0 answers

