[theme-reviewers] disabling or hiding comments

Chip Bennett chip at chipbennett.net
Sun Apr 20 14:25:11 UTC 2014


See the comments_open()<http://codex.wordpress.org/Function_Reference/comments_open>conditional,
and
get_comments_number()<http://codex.wordpress.org/Template_Tags/get_comments_number>,
which you can use together, e.g. like so:

if ( comments_open() || 0 != get_comments_number() ) { comments_template();
}


On Sat, Apr 19, 2014 at 11:54 PM, carolina poena <myazalea at hotmail.com>wrote:

> Disabling comments is plugin territory, but what about an option to simply
> hide the comments? This would be allowed, correct?
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20140420/ebbd5f98/attachment.html>


More information about the theme-reviewers mailing list