Title: comments_text()
Last modified: August 19, 2016

---

# comments_text()

 *  Resolved [andy_b](https://wordpress.org/support/users/andy_b/)
 * (@andy_b)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments_text/)
 * Hi
 * In the comments section of my blog i am trying to display the commenters name,
   the time the comment was made and the comment itself in one line using the following
   code in my comments.php file.
 * `<span class="commentauthor"> <?php comment_author_link(); ?> </span>`
    `<span
   class="commentdate"> <?php comment_date(' F j, Y '); ?> @ <?php comment_time('
   H:i'); ?> </span>` `<span class = "commentdate"> <?php comment_text(); ?></span
   >`
 * the classes just contain color styles.
 * However the `<?php comment_text(); ?>` returns the comment text within paragraph
   tags. I can therefore not display everything on one line.
 * Any ideas?
 * cheers

Viewing 1 replies (of 1 total)

 *  Thread Starter [andy_b](https://wordpress.org/support/users/andy_b/)
 * (@andy_b)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments_text/#post-935493)
 * solution found on another thread
    [http://wordpress.org/support/topic/164771](http://wordpress.org/support/topic/164771)

Viewing 1 replies (of 1 total)

The topic ‘comments_text()’ is closed to new replies.

## Tags

 * [paragraph](https://wordpress.org/support/topic-tag/paragraph/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * 1 reply
 * 1 participant
 * Last reply from: [andy_b](https://wordpress.org/support/users/andy_b/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/comments_text/#post-935493)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
