[wp-trac] [WordPress Trac] #12223: Adding a titles to comment levels with the walker class

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 14 17:52:37 UTC 2010


#12223: Adding a titles to comment levels with the walker class
-----------------------------+----------------------------------------------
 Reporter:  danielpataki     |       Owner:                                
     Type:  feature request  |      Status:  new                           
 Priority:  normal           |   Milestone:  Future Release                
Component:  Comments         |     Version:                                
 Severity:  normal           |    Keywords:  walker class, wp_list_comments
-----------------------------+----------------------------------------------

Comment(by danielpataki):

 Yes, I normally use a callback to format everything, but while this allows
 me to format any comment, I cant do anything before the 2nd level comments
 start for a first level.

 I just got into objects in PHP a month or so, and I don't have the
 expertise to do that quickly for myself, so I will probably just use a
 custom query to list all the comments I need, and their sub-comments,
 adding a title before the 2nd level ones.

 It would however be an option which would feel very "wordpress"-like, to
 enable comment level titles with a "title_li", perhaps in the
 wp_list_comments itself. This would be a little more difficult since you
 can have many levels, so maybe an array would be best?

 Anyway, thanks for helping out. I will try and submit better tickets,
 please do tell me if I am being over-helpful here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12223#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list