How do I print the options in a dropdown field? I have a dropdown field with X options.  I want to print each option as a button.

I tried...

&lt;ul&gt;
    {% for option in entry.isotope.options %}
        &lt;li&gt;{{ option }}&lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;


isotope = dropdownFieldHandle

But I get the error Variable "entry" does not work'.
There's not an "elegant" way to do this but you can access the dropdown field by its handle using getFieldByHandle. Something like:

{% set dropdownField = craft.fields.getFieldbyHandle('isotope') %}

  {% for option in dropdownField.settings.options %}
    &lt;li&gt;{{ option.value }}&lt;/li&gt;
  {% endfor %}


If you need the label instead, just use {{ option.label }}

You can also grab a dropdown's options from any entry you know has the field already attached, such as the first entry from your news section for example:

{% set entry = craft.entries.section('news').limit(1)[0] %}

&lt;ul&gt;
{% for option in  entry.isotope.options %}
    &lt;li&gt;{{ option.value }}&lt;/li&gt;
{% endfor %}
&lt;/ul&gt;


Note: similar to this question.