Loop to publish multiple items.