Hi,
I want to check whether any entries exist with the status ‘Featured’ and, if they exist, display them. But, if there aren’t any, I’d like to revert to displaying entries with the bog standard status ‘Open’.
I know I could go through all the entries and test the {status} variable, but it seems a bit of a waste to have to go through every entry.
Is there a more efficient way to do this? Perhaps something like (although I’m sure you can’t run the weblog:entries tage within itself):
...og:entries limit=“5” status=“featured”}
{if no_results}
...og:entries limit=“5” status=“open”}
{/if}
Thanks, in advance. I’m using 1.6.9.