Support » Fixing WordPress » ul class=children inserted in replied comments code?

  • In my comment form for replies the following is added at the beginning
    (auto by wp):

    <ul class='children'>

    and at the end:

    </li>
    </ul>
    </li>

    This kinda breaks my comment function because somehow I would need to add:

    <li> before the ul and </li> after the url but only if it is a replied comment. I could do that … as the other workaround but … how to check if a comment is a reply (i could then insert it in comments.php).

    So either:
    – these 2 codes that are put in there: i dont want OR
    – i need to check if it is a reply to have a li before and a li after the insert ul

    ???

Viewing 1 replies (of 1 total)
  • I think you should see the source code of Twenty Ten theme on how the comment thread is implemented.

    In comments.php, it only puts the following code:

    wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
    

    Then, check out functions.php, find function twentyten_comment() to see how to implement comment threading, regardless how deep the reply comments thread is.

Viewing 1 replies (of 1 total)
  • The topic ‘ul class=children inserted in replied comments code?’ is closed to new replies.