Skip to main content

Merge tag {entry_count}

Entry count. Works only inside a GravityMath formula, in the [gvmath] shortcode.

On the test entry, {entry_count} gives 2.

ProductGravityMath
RequiresGravityMath 2.0 or later
Needs an entryNo

Parameters

NameTypeRequiredDefaultDescription
Scopeone of the valuesNo—Which entries to count. Leave empty to use the shortcode's scope.

Values for Scope

ValueDescription
visibleEntries visible on this page
viewEntries in this View
formAll entries in the form

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutput
{entry_count}2
{entry_count:visible}0
{entry_count:view}0
{entry_count:form}2
[gvmath scope="form" id="501"]{entry_count}[/gvmath]2[/gvmath]