/**
  * @param array $posts
  * @return array
  */
 public function preparePostsInfoForBlogList($posts)
 {
     $preparePosts = array();
     /* @var $post Post */
     foreach ($posts as $post) {
         $temp = array();
         // Data:
         $temp['user'] = array('email' => $post->getUser()->getEmail(), 'displayname' => $post->getUser()->getDisplayName(), 'nicename' => $post->getUser()->getNicename());
         $temp['title'] = $post->getTitle();
         $temp['content'] = $this->parseContent($post->getContent());
         $temp['slug'] = $post->getSlug();
         $temp['meta_role'] = 'Editor';
         $temp['published_date'] = $post->getDate();
         $temp['excerpt'] = $post->getExcerpt();
         $temp['comments'] = $this->getValidComments($post);
         $temp['tags'] = $this->getTags($post);
         $temp['item'] = $post;
         $temp['featured_image'] = str_replace($this->wpUploadUrl, $this->staticUrl, $this->attachmentHelper->findThumbnail($post)->getGuid());
         $preparePosts[] = $temp;
     }
     return $preparePosts;
 }
 public function getAttachmentUrl($post)
 {
     return $this->attachmentHelper->getAttachmentUrl($post);
 }