title: Wordpress 2 blog show in Magento2 home page?
body: <p>I have done fishpig integration  with magento2 succesfully but  i am not able to show 2 blog post Magento2 home page  i created my custom.phtml file and call it to home page but only single post are coming </p>
  
  <pre><code>&lt;?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance() ?&gt;
  &lt;?php $posts = $objectManager-&gt;create('FishPig\WordPress\Model\ResourceModel\Post\Collection')
      -&gt;addPostTypeFilter('post')
      -&gt;setOrderByPostDate()
      -&gt;addIsViewableFilter()
      -&gt;setPageSize(5)
      -&gt;load(2); ?&gt;
  &lt;?php if (count($posts) &gt; 0): ?&gt;
      &lt;ul&gt;
          &lt;?php foreach($posts as $post): ?&gt;
  
              &lt;li&gt;
                  &lt;a href="&lt;?php echo $post-&gt;getUrl() ?&gt;"&gt;&lt;?php echo $this-&gt;escapeHtml($post-&gt;getPostTitle()) ?&gt;&lt;/a&gt;
                  &lt;?php if ($image = $post-&gt;getFeaturedImage()): ?&gt;
                      &lt;a href="&lt;?php echo $post-&gt;getUrl() ?&gt;"&gt;
                          &lt;img src="&lt;?php echo $image-&gt;getAvailableImage() ?&gt;" src="&lt;?php echo $this-&gt;escapeHtml($post-&gt;getPostTitle()) ?&gt;" /&gt;
                      &lt;/a&gt;
                  &lt;?php endif; ?&gt;
                  &lt;p&gt;&lt;?php echo $post-&gt;getPostExcerpt(40) ?&gt;&lt;/p&gt;&lt;/li&gt;
          &lt;?php endforeach; ?&gt;
      &lt;/ul&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I want to show two latest post </p>