title: Magento - Get all products in the current category
body: <p>I am having another issue with what I am trying to achieve here:</p>
  
  <p><a href="https://stackoverflow.com/questions/29101672/magento-if-product-has-attribute-get-its-id">Magento If product has attribute, get it&#39;s ID</a></p>
  
  <p>Basically what should be happening is, for the current category if there is a product with an attribute with one of three values, then it should be displayed at the top of the page, below the description.</p>
  
  <p>What is happening though is, it is only looping through products on the current page. I think the issue lies with this, in the list.phtml file:</p>
  
  <pre><code>foreach ($_productCollection as $_product);
  </code></pre>
  
  <p>So does anyone know how I can get and loop through all the products in the current category, across all pages?</p>