KK wrote: @atisz, I'd suggest you please make things easier for yourself by breaking up the code in manageable chunks.
The key part in your code is the following statement -
- Code: Select all
<cms:pages masterpage='members/template-name.php' custom_field="page_hits=0" show_future_entries='1' count_only='1' />
Capture its output into a variable for using later on as follows -
- Code: Select all
<cms:capture into='my_count'><cms:pages masterpage='members/template-name.php' custom_field="page_hits=0" show_future_entries='1' count_only='1' /></cms:capture>
As you can see above, we simply wrapped <cms:capture> immediately around the original code.
And now the rest of the code should become easier to understand (and debug if necessary) -
- Code: Select all
<li>
<a href="template-name.php">MENU OPTION
<cms:if my_count gt '0' >
<em><cms:show my_count /></em>
</cms:if>
</a>
</li>
Hope this helps.
Thank you KK! That way it is a lot easier to understand the code

Thanks again!
Regards,
Attila