title: Foreach loop, offset or skip first post in the loop
body: <p>I'm trying to figure this out for hours but I can't. I just want to show the second post and skip the first one, just like the Wordpress offset function. I'm using AW blog extension for Magento and I want to skip the first post in the recent blog posts. Below is my modified code showing one post recent post in a homepage block. I just want to create another block that will show the second recent post. :(</p>
  
  <pre><code>&lt;?php $posts = $this-&gt;getPosts(); ?&gt;
  &lt;div id="messages_product_view"&gt;
      &lt;?php Mage::app()-&gt;getLayout()-&gt;getMessagesBlock()-&gt;    setMessages(Mage::getSingleton('customer/session')-&gt;getMessages(true)); ?&gt;
      &lt;?php echo Mage::app()-&gt;getLayout()-&gt;getMessagesBlock()-&gt;getGroupedHtml(); ?&gt;
  &lt;/div&gt;
  
  &lt;?php 
   foreach ($posts as $post):
   if ($i++ &gt;= 1) break;
  ?&gt;
  
  
      &lt;div class="postWrapper"&gt;
          &lt;div class="postTitle"&gt;
              &lt;h3&gt;&lt;a href="&lt;?php echo $post-&gt;getAddress(); ?&gt;" &gt;&lt;?php echo $post-&gt;getTitle(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
          &lt;/div&gt;
          &lt;div class="postContent"&gt;&lt;?php echo $post-&gt;getPostContent(); ?&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;?php endforeach; ?&gt;
  </code></pre>