[wp-hackers] Two different comments templates
scribu
scribu at gmail.com
Mon Aug 16 11:29:22 UTC 2010
On Mon, Aug 16, 2010 at 1:42 PM, Baki Goxhaj <banago at gmail.com> wrote:
> I'm building a content type on WP that requires slightly different comments
> template.
>
> I tired to duplicate comments.php and require it, but it seems not to work.
> Is there a way to have two different comments templates in WP?
>
Sure:
single.php:
comments_template(); // loads comments.php
single-your-post-type.php:
comments_template('/different-comments.php');
--
http://scribu.net
More information about the wp-hackers
mailing list