• Hello

    Do you have or know any step by step tutorials for adding threaded comments to wordpress themes that doesnt involve using wp_list_comments() so i can fully customise the output?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter desbest

    (@desbest)

    I’ve seen 2 tutorials online that use wp_list_comments() and they are not helpful for me because the themes I’m editing don’t use that.

    • This reply was modified 4 years, 5 months ago by desbest.
    Moderator bcworkz

    (@bcworkz)

    Well, there’s the problem. Any documentation to that end would depend upon what your theme specifically does. It’s infeasible to produce a step by step that can apply to what ever any random theme chooses to do. Your best course of action may be to alter the theme to use wp_list_comments() instead of what they do now. Then the tutorials you found would be helpful.

    If you do this, you shouldn’t directly alter theme templates. Keep your altered templates in a child theme.

    Thread Starter desbest

    (@desbest)

    But then I would lose the styling of the theme if I did that. The theme would look worse and be not usable. I am editing themes made years ago to improve them. The themes I’m editing are using
    foreach ($comments as $comment)

    Does anyone know how to do threaded comments when the comments are being printed with a foreach loop?

    If I have an example as a starting point, I should then know how to add threaded comments to existing themes which use foreach to print comments.

    • This reply was modified 4 years, 5 months ago by desbest.
    • This reply was modified 4 years, 5 months ago by desbest.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any tutorials for adding threaded comments that doesn’t have wp_list_comments()’ is closed to new replies.