I have a field named {the_shadow} set up with P&T Switch field type of "yes" and "no" for their values. For some reason it doesn't seem to work:
{exp:channel:entries
channel="portfolio_work"
orderby="random"
limit="20"
disable="member_data|pagination|categories|categories_fields"
}
{if main_photo}
<!-- Work -->
<li class="touchcarousel-item">
<div class="workPiece">{exp:gwcode_fileinfo:single file="{main_photo}"}<img src="{main_photo}" width="{image_width}" height="505" alt="{title}" />{/exp:gwcode_fileinfo:single}</div>
{if the_shadow == "yes"}<div class="workShadow"> </div>{/if}
</li>
{/if}
{/exp:channel:entries}
I am running ee v.2.5.5.
Thanks, -Sam