Title: Quick question regarding comment.php
Last modified: August 20, 2016

---

# Quick question regarding comment.php

 *  [johnfotios](https://wordpress.org/support/users/johnfotios/)
 * (@johnfotios)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/quick-question-regarding-commentphp/)
 * 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>
       ```
   

Viewing 1 replies (of 1 total)

 *  [Peter_L](https://wordpress.org/support/users/peter_l/)
 * (@peter_l)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/quick-question-regarding-commentphp/#post-3031477)
 * take a look at this
    [http://codex.wordpress.org/Function_Reference/comment_author_url](http://codex.wordpress.org/Function_Reference/comment_author_url)

Viewing 1 replies (of 1 total)

The topic ‘Quick question regarding comment.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Peter_L](https://wordpress.org/support/users/peter_l/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/quick-question-regarding-commentphp/#post-3031477)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
