This is a great plugin. But I was wondering: is there a way that it can be modified so that it doesn't "echo" the output number of posts asked for, but allows it to be used in a mathematical or logical operation?
Something like
<?php $var = count_posts('daily log', '60'); ?>
or
<?php if (count_posts('daily log', '60')==0) { ... }; ?>
I've tried to use it this way, and it doesn't seem to work:
http://www.sevenrealms.org/?page_id=377
Here's where I'm currently using it as it is:
http://www.sevenrealms.org/?page_id=99
http://www.sevenrealms.org/?page_id=100
I would like to be able to be able to change the color of a table cell depending on the number of posts in the category represented by that cell (making 0's white).
I could possibly modify it myself (knowing just enough about coding to be dangerous) if I had the right coding resources. If anybody reading this doesn't happen to have a particular answer, then perhaps you could point me to somewhere on the codex or the web that would show me how to write or modify a plugin that would add this kind of functionality??
Thanks.