[wp-trac] [WordPress Trac] #28497: comments.php doesn't act as the rest of templates

WordPress Trac noreply at wordpress.org
Wed Jun 25 22:07:15 UTC 2014


#28497: comments.php doesn't act as the rest of templates
--------------------------+------------------------------
 Reporter:  SGr33n        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by MikeHansenMe):

 Thanks for reporting. comments_template() works similar to get_header()
 except that you pass a filename instead of just a name to append
 header-{name}.php. You can currently pass a parameter to comments_template
 that defines the file to load. So you could use :
 {{{
 comments_template( 'comments-reviews.php' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28497#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list