WordPress.org

Ready to get started?Download WordPress

Forums

Quick question regarding comment.php (2 posts)

  1. johnfotios
    Member
    Posted 1 year ago #

    I'm working on comments.php right now.

    When you make a comment, you enter your name, email and website. How do I get the "website" to show up when the comment is shown?

    <ol class="commentlist">
    			<?php foreach ($comments as $comment) : ?>
    			<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
    			<div class="commenttext">
    			<p>Comment by <em><strong><?php comment_author_link() ?></strong></em></p>
    			<?php comment_text() ?>
    			<p><span class="date"><img src="/images/commentlink.gif" alt="" /> <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_time() ?> on <?php comment_date('n/j/y') ?></a></span></p> <?php // edit_comment_link('edit','&nbsp;&nbsp;',''); ?>
    			</div>
    			<?php if ($comment->comment_approved == '0') : ?>
    			<p><em>Your comment is awaiting approval.</em></p>
    			<?php endif; ?>
    			</li>
    			<?php
    			/* Changes every other comment to a different class */
    			$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';?>
    			<?php endforeach; /* end for each comment */ ?>
    			</ol>
  2. Peter_L
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.