title: add_post_meta() function in WORDPRESS not working properly
body: <p>One of the parameters of this function is the value for the meta_key. When I use a basic string like &quot;hello&quot; or &quot;house&quot; as a value the function works fine but when i store that value in a variable i don't know why don't work properly, it just not store de value in the custom field. Any help please thanks</p>
  <pre><code>// This work
  add_post_meta( $post_ID, 'Name', 'Jack', true );
  
  // This isn't
  $name = &quot;Jack&quot;;
  add_post_meta( $post_ID, 'Name', $name, true );
  </code></pre>