add_post_meta() during creation of new ad
I am trying to add a WP
custom field to newly created CP ads, but it somehow does not work.
I have put a call to add_post_meta( $post_id, 'tp_language', $language_code, true) inside step-functions.php, just after the foreach() which
adds "all the custom fields into WP
post meta fields"
But if I check the ad post via Dashboard, my meta/custom field does not appear there.
Could anybody point me to the right direction? I need this for making Classipress multilangual.
Thanks for your thoughts.