A function to output a delimited list of posts given an array of IDs in WordPress