[theme-reviewers] disabling or hiding comments
myazalea
myazalea at hotmail.com
Sun Apr 20 14:30:11 UTC 2014
Doh! Of course. Thank you!
Skickat från min Samsung Mobil
<div>-------- Originalmeddelande --------</div><div>Från: Chip Bennett <chip at chipbennett.net> </div><div>Datum:20-04-2014 16:25 (GMT+01:00) </div><div>Till: "Discussion list for WordPress theme reviewers." <theme-reviewers at lists.wordpress.org> </div><div>Rubrik: Re: [theme-reviewers] disabling or hiding comments </div><div>
</div>
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/21faff33/attachment.html>
-------------- next part --------------
_______________________________________________
theme-reviewers mailing list
theme-reviewers at lists.wordpress.org
http://lists.wordpress.org/mailman/listinfo/theme-reviewers
More information about the theme-reviewers
mailing list