Created getRelated() function to get posts related to the current post via the posts to posts plugin. Extracted getMeta() from mapObjectData().