[wp-hackers] No Comments on pages with my shortcode

Ryan Bilesky rbilesky at gmail.com
Sat Mar 12 02:45:44 UTC 2011


Simple enough I want to force no comments on pages with my shortcode, now I
can use the comments_open filter, but most themes are setup to display some
message like comments closed if no comments are opened, ideally I want to
supress that too.  My thinking is maybe I could use css to hide that
message, for example in twentyten I know that's wrapped with the class
"nocomments" is this usually the case?


More information about the wp-hackers mailing list