I have this code testing if a page (blog post page) has one or more comments associated with it:
if($entry->comment.count > 0) {
$out .= "This post has earned ";
$commentCount = $entry->comment.count;
$out .= (int)$commentCount;
$out .= " comments so far.";
}
The test works fine, but the number of comments is returning something like an ID (I guess) rather than the number of comments.
For example two pages have one comment each and for one it reports:
and on the other:
I am pretty sure this a PHP-lite-weight issue between the chair and the keyboard. If you're less PHP lite-weight than me and care to comment on what I might need to do, I would be most grateful