Updated to use meta data from posts