Count pod entries with “where=”?
-
Hi!
I have some sort of concert calendar, and it shows events, which feature a specific composition:
[pods name="performances" orderby="concert_date DESC" limit="-1" where="composition.id = {@id}" template="Performance List at Work Page"]
This already works super well. So, I have many events. But with this code, I can specifically show those only, which feature a specific composition.
Now the issue: Above that, I would like to print the sum of all of those events (which feature this one specific composition, that is). A number. Is there a key to that? I tried to figure that out via Google, yet failed. Should it not possible with something like “where=”? And there is this “total_found”, no? Is not that tag going in the right direction for my needs?
On the one hand, this questions appears to be not too easy to be solved, because I could not find a solution really in the forums. But on the other hand, I feel this is a rather basic thing. Does someone have a hint for me?
Thanks for your comments!
Stefan
- The topic ‘Count pod entries with “where=”?’ is closed to new replies.