Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-13T06:28:15.597Z
Comments.Text: 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.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-18T07:44:24.543Z
Comments.Text: 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?
Comments.UserDisplayName: mattl
Tags: <plugin-development><entries><custom-field>
Title: Adding extra data to an element
ThreadText: # 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
  
  