title: Get dropdown attribute text - Magento 2
body: <p>I am trying to retrieve the text value for the manufacturer attribute. It is a dropdown field. I tried this:</p>
  
  <pre><code>$manufacturerName = $_product-&gt;getAttributeText('manufacturer');
  $manufacturerId = $_product-&gt;getManufacturer();
  </code></pre>
  
  <p><code>$manufacturerName</code> should display "<em>BrandName</em>", but it always displays <strong>1</strong> even if I change the manufacturer. The <code>$manufacturerId</code> changes when I change the manufacturer.</p>
  
  <p>I don't understand why the manufacturer name is not displayed correctly. Any ideas?</p>