In one of my weblogs, there is a drop-down list as a custom field, where you upload an image and delegate it as 1 of 4 types of media images. The drop-dowm custom field is called “mediatype”. If the options are “Option1” through “Option4”, how do I display only entries that are of Option1? This is what I have and it blows up when I throw in the if statement to check the value of the custom field…
<div><ul>
{exp:weblog:entries weblog="press" orderby="date" sort="desc"}
{if mediatype = "Option1"}
<li><a href="http://{pressfilename}" target="_blank" rel="noopener">{pressfilename}</a></li>
{if no_results}
<li>There are no files available.</li>
{/if}
{/if}
{/exp:weblog:entries}
</ul></div>