Forums
(@mralexandernickel)
9 years, 10 months ago
### IMPORTANT ###
Instead of using update_post_meta() inside the foreach, you NEED TO use wp_update_attachment_metadata()! …the params stay the same.
update_post_meta()
wp_update_attachment_metadata()
…guess this is just a typo by stianlik, as update_post_meta needs 3 params anyway ??