Fixes Bug with Permalinks Always Showing Post Corresponding to First Object in Collection

Resolves an issue whereby permalinks for associated posts always display as the peramalink to the very first object in the collection (based on the defined sort order) instead of the associated post of the object in question.