title: Magento - Get product items attribute in view.phtml
body: <p>I am trying to load a custom category in the <em>catalog/category/view.phtml</em> to archive this I use:</p>
  
  <pre><code>&lt;?php
  $_category = Mage::getModel('catalog/category')-&gt;load(47);
  $_productCollection = $_category-&gt;getProductCollection();
  if($_productCollection-&gt;count()) {
      foreach( $_productCollection as $_product ):
          echo $_product-&gt;getProductUrl();
          echo $this-&gt;getPriceHtml($_product, true);
          echo $this-&gt;htmlEscape($_product-&gt;getName());
      endforeach;
  }
  ?&gt;
  </code></pre>
  
  <p>I can load the URL for example, now I want to load a custom attribute for example color:</p>
  
  <pre><code>$_product-&gt;getResource()-&gt;getAttribute('color')-&gt;getFrontend()-&gt;getValue($_product)
  </code></pre>
  
  <p>This code does not work, I am 100% sure the color attribute is set to show in the category listing and also that the items in this category have this fields fill. I know this because this code works on <em>list.html</em>.</p>
  
  <p>What I am doing wrong? I am working with 1.7.0.2.</p>
  
  <p>The expected result is to show all COLOR attibutes from a custom cateogory in </p>
  
  <blockquote>
    <p>catalog/category/view.phtml</p>
  </blockquote>