[wp-hackers] Two different comments templates
Baki Goxhaj
banago at gmail.com
Mon Aug 16 11:39:11 UTC 2010
Thanks very much Scribu.
Kindly,
Baki Goxhaj
www.wplancer.com | www.banago.info | www.lintuts.com
On 16 August 2010 04:29, scribu <scribu at gmail.com> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list