Optmize related-posts output