I have a set of entries with two custom date fields: conf-date and pub-date. I have a conditional in the code below for displaying the proper date. I’d like to have the entries sorted using the same conditional, rather than just pub-date as shown in the code. Is this possible? (FYI, I’m using the entry date in a different template so I can’t use it here to manipulate the display order).
{exp:weblog:entries weblog="cme" orderby="pub-date" show_expired="yes"}
<a href="http://{permalink=programs/detail}">{webtitle}</a>
{if cme-subtitle}{cme-subtitle}
{/if}
{if conf-date}{conf-date format="%F %Y"}
{if:else}{pub-date format="%F %Y"}{/if}
{/exp:weblog:entries}