Closed arifje closed 5 years ago
I want to get the entry count in my json feed which is generated by Elements API. So I tried this:
use putyourlightson\entrycount\EntryCount; $views = EntryCount::$plugin->getCount($entry->id);
But then I get:
{ "error": { "code": 0, "message": "Calling unknown method: putyourlightson\\entrycount\\EntryCount::getCount()" } }
Any help is appreciated, thanks!
Should be:
EntryCount::$plugin->entryCount->getCount($entry->id);
Awesome, thanks!
I want to get the entry count in my json feed which is generated by Elements API. So I tried this:
But then I get:
Any help is appreciated, thanks!