Title: starcontroller's Replies | WordPress.org

---

# starcontroller

  [  ](https://wordpress.org/support/users/starcontroller/)

 *   [Profile](https://wordpress.org/support/users/starcontroller/)
 *   [Topics Started](https://wordpress.org/support/users/starcontroller/topics/)
 *   [Replies Created](https://wordpress.org/support/users/starcontroller/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/starcontroller/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/starcontroller/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/starcontroller/engagements/)
 *   [Favorites](https://wordpress.org/support/users/starcontroller/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Comments display as one block of text](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/)
 *  [starcontroller](https://wordpress.org/support/users/starcontroller/)
 * (@starcontroller)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/#post-837997)
 * I’m sorry. I don’t know anything about wrapping classes. How would it be done
   for comment_text?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Comments display as one block of text](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/)
 *  [starcontroller](https://wordpress.org/support/users/starcontroller/)
 * (@starcontroller)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/#post-837994)
 * Hello,
 * I tried
 * `<?php echo get_comment_text(); // no default filters ?>`
 * and it removed all of the paragraph tags, removing all remaining linebreaks, 
   making everything look like a giant paragraph no matter how many times the user
   added a line break for the comments.
 * However, I modified your above line of code, which did change all newline characters
   to tags, which did fix my problem:
 * `<?php echo str_replace("\n","<br />",get_comment_text()); ?>`
 * So, basically it got rid of the paragraph tags but it replaces the newlines `"\
   n"` with `<br />`, which has the same output. It still has the same problem if
   I change `get_comment_text()` to `comment_text()`. The only downside to `get_comment_text()`
   is that it doesn’t convert web urls in comments to clickable hyperlinks, but 
   this is not an issue for me. I don’t know if it truly follows proper HTML-etiquette,
   but it’s a nice quickfix for now.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Comments display as one block of text](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/)
 *  [starcontroller](https://wordpress.org/support/users/starcontroller/)
 * (@starcontroller)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/comments-display-as-one-block-of-text/#post-837992)
 * I have the same issue noted above. There is something about this line:
    `<?php
   comment_text() ?>` It encloses each comment line in paragraph tags but it doesn’t
   add the so everything looks scrunched up.
 * I have tried str_replace to fix this, but it remains unaffected:
    `<?php echo
   str_replace("</p>","</p><br />", comment_text()); ?>` I am all out ideas and 
   I am not sure how to fix this either. I have tried other themes and they include
   the line breaks.
 * I hope this helps explain what the issue is.

Viewing 3 replies - 1 through 3 (of 3 total)