I'm trying to display one entry with the search:field_name parameter of ExpressionEngine. This works fine, but I can't get the no results tag to work. I have tried a lot of things, including the use of other things then exp:channel:entries. This is my current code:
{exp:channel:entries
channel="projecten"
dynamic="no"
search:project_trackcode="={freebie_2}"
limit="1"
require_entry="yes"
}
test
{if no_results}
Geen resultaten
{/if}
{/exp:channel:entries}
It doesn't matter if I set require entry to yes or no. The code does return entries if available, but when it doesn't find an entry, it doesn't even seem to enter the {exp:channel:entries}.