Comments Display On Single Line??
-
can you post the relevant section of your comments.php?
if the code is longer than a few lines, please use a http://wordpress.pastebin.com/
this is the section in the comments.php that displays the comment…no matter where I move <?php comment_text() ?> it keeps showing up beneath the date and name….
<!– You can start editing here. –>
<?php if ($comments) : ?>
<h3 id=”comments”><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to “<?php the_title(); ?>”</h3>
<div class=”comments”>
<ol class=”comments_list”>
<?php foreach ($comments as $comment) : ?><li <?php echo $oddcomment; ?>id=”comment-<?php comment_ID() ?>”>
<cite><?php comment_author_link() ?></cite> Says:
<?php if ($comment->comment_approved == ‘0’) : ?>
Your comment is awaiting moderation.
<?php endif; ?><small class=”commentmetadata”>” title=””><?php comment_date(‘F jS, Y’) ?> at <?php comment_time() ?> <?php edit_comment_link(‘edit’,’ ‘,”); ?></small>
<?php comment_text() ?><?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? ‘class=”alt” ‘ : ”;
?>
<?php endforeach; /* end for each comment */ ?></div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– If comments are open, but there are no comments. –>try to concatenate the elements into one string and then apply the filter for ‘comment_text’
$inline_commment = get_the_time('d-n-y') . ' ' . get_comment_author_link() . ' says: ' . get_comment_text(); echo apply_filters( 'comment_text', $inline_commment);http://codex.ww.wp.xz.cn/Function_Reference/comment_text
http://codex.ww.wp.xz.cn/Function_Reference/comment_author_link
http://codex.ww.wp.xz.cn/Function_Reference/get_the_timeOMG! That worked…Seems so simple now, but doesn’t it always!!!
You are the best!!! Thanks!
The topic ‘Comments Display On Single Line??’ is closed to new replies.
(@mromro)
15 years, 4 months ago
Please someone help.. I have been trying to do this all day.
I am trying to display the comment and author on the same line like this:
1-23-11 ANON says: Some Comment Here!!!!
Everytime I try and change the comments.php it still displays like this:
1-23-11 ANON Says:
Some Comment Here!!!!
Anyone know how to do this??Thanks!