Hi there,
I would like create a command to turn ‘1 Search Results’ (plural) into ‘1 Search Result’ (singular). Obviously if more than one result is created, I’d like to keep the plural version.
I believe this is a common PHP conditional, but I have very little experience of PHP.
My code looks like this:
<h2><em>{exp:search:total_results}{total}{/exp:search:total_results} search results for</em> “{exp:search:keywords}”</h2>Any help is appreciated!