I’m trying to get a word to read either singular or plural in expressionengine based on the amount of entries with a certain variable, but not having any luck. Here’s what it is currently:
exp:channel:entries channel="specialist" dynamic="no" search:sp_specialty="={segment_2}" }
{if total_entries <= 1 }
OUR SPECIALIST
{if:else}
OUR SPECIALISTS
{/if}
{/exp:channel:entries}
Can I match a search using the segment value? Right now it’s not working. Easier way of doing this?
Try this:
total_resultsnottotal_entries.{if no_results}tag pair).