title: Magento Fishpig Wordpress module - Creating a custom post list
body: <p>This should be simple, but for some reason it is not. I simply want to be able to load in my own template file and have access to the $this->getPosts() method.</p>
  
  <p>I have tried:</p>
  
  <pre><code>&lt;block type="wordpress/post_list" name="blog_header" template="unleaded/fishpig/header.phtml"/&gt;
  </code></pre>
  
  <p>and then in my template:</p>
  
  <pre><code>&lt;?php $_posts = $this-&gt;getPosts() ?&gt;
  &lt;?php foreach ($_posts as $_post) : ?&gt;
       &lt;?php echo $_post-&gt;getAuthor() ?&gt;
  &lt;?php endforeach ?&gt;
  </code></pre>
  
  <p>This does not work. Looking at the main List.php block file, the collection is returned based on a "wrapper", but I can't seem to find what that is. </p>
  
  <p>Does anyone else have a code sample for getting a post list in any template for Magento?</p>