Polls with respective comments?

I can’t see a way to do it with any existing plugins. Probably the best thing to do would be to modify the plugin so that in the short code you could put “post=186” where 186 corresponds to the number of the page that you’re posting it on. And then modify the output of the … Read more

How to use the ‘comments_number’ filter?

The filter you mention is used by the end of get_comments_number_text. As you can see from the source the number of comments is passed through the filter, allowing you to completely change the default text. Like this: add_filter (‘comments_number’, ‘wpse89257_comments_number’, 10, 2); function wpse89257_comments_number ($output, $number) { if ($number == 0) $output=”0 Comments”; elseif ($number … Read more

Display Custom comments field number

I would try something like this: $comments = get_comments(); $yes = 0; $no = 0; foreach ($comments as $comment) { $vote = get_comment_meta ( $comment->comment_ID, ‘vote’, true ); if ($vote == ‘yes’) { $yes++; } else if ($vote == ‘no’) { $no++; } } echo ‘Yes:’.$yes.’ No:’.$no; Problem is the numbers can easily be manipulated … Read more