Closed jacksoncool closed 5 years ago
installed plugin via the store, and entries get counted (none listed in the admin). And no show up in templates.
I'm using the following template code:
{% set entries = craft.entryCount.entries.section('articles') .limit(4) .all() %}
{% for entry in entries %} {% set count = craft.entryCount.count(entry.id) %} <li> <a href="{{ entry.url }}">{{ entry.title }}</a> </li> {% endfor %}
Try this first to ensure that counts are being stored in the control panel:
{% set entry = craft.entries.one() %} {% do craft.entryCount.increment(entry.id) %} {{ craft.entryCount.count(entry.id) }}
installed plugin via the store, and entries get counted (none listed in the admin). And no show up in templates.
I'm using the following template code:
{% set entries = craft.entryCount.entries.section('articles') .limit(4) .all() %}