How to show entries with IF statement based on field I'm showing entries on a page. Depending on the value of the field postAspectRatio, I would like the layout of this shown entry to change just slightly and thus requiring it's own unique markup. 

I've tried to do this using what I know about twig IF syntax but it's not working. 

Any help?

{% block content %}

{% for entry in craft.entries.section('projects').order('postDate asc').limit(500).find() %}

        {% if entry.postAspectRatio == 'Portrait' %}

        &lt;div class="title portrait"&gt;
            &lt;a href="{{ entry.url }}"&gt;
                &lt;p&gt;&lt;span&gt;{{ entry.studio }}&lt;/span&gt;{{ entry.title }}&lt;/p&gt;
            &lt;/a&gt;
        &lt;/div&gt;

        {% endif %}

        {% if entry.postAspectRatio == 'Landscape' %}

        &lt;div class="title landscape"&gt;
            &lt;a href="{{ entry.url }}"&gt;
                &lt;p&gt;&lt;span&gt;{{ entry.studio }}&lt;/span&gt;{{ entry.title }}&lt;/p&gt;
            &lt;/a&gt;
        &lt;/div&gt;

        {% endif %}

{% endfor %}

{% endblock %}
Your if statements looks correct. You might check that you are testing the value vs. the name (i.e. 'Portrait' vs 'portrait') or printing out the value (using {{ entry.postAspectRatio }}) so you can see the output. Also, a 'dryer' way to write this might be:

{% block content %}

    {% for entry in craft.entries.section('projects').order('postDate asc').limit(500).find() %}

        &lt;div class="title {{ entry.postAspectRatio|lower }}"&gt;
            &lt;a href="{{ entry.url }}"&gt;
                &lt;p&gt;&lt;span&gt;{{ entry.studio }}&lt;/span&gt;{{ entry.title }}&lt;/p&gt;
            &lt;/a&gt;
        &lt;/div&gt;

    {% endfor %}

{% endblock %}