EE2.3.1
I have two channel entries tags, both identical except each variation needs to look up a number that’s stored in a custom field, and output less than, or more than totals, called by a simple conditional.
Field data_distance stores a number, eg 12.05947 or 2936.939, and there are entries that can be filtered (I output “all” data elsewhere so I know it’s there!).
Here’s my basic code:
{exp:channel:entries channel="data" search:data_type="Redeem" dynamic="no"}
{if data_distance <= '50'}
{if count == total_results}Total results {total_results}{/if}
{/if}
{/exp:channel:entries}
{exp:channel:entries channel="data" search:data_type="Redeem" dynamic="no"}
{if data_distance > '50'}
{if count == total_results}Total results {total_results}{/if}
{/if}
{/exp:channel:entries}The first tag has 1 out of 4 available entries to display, but total_results is blank (no output at all).
The second tag has 3 out of 4 available entries to display, but total_results outputs “4”, not “3” as it should do.
Stumped!
Any ideas?