update script for post metadata