Conditional Statements for Comments Loop/Loop Structure
-
I am using the comment_form and wp_list_comments functions as the guts of my comments template. What I want to know is what the basic bones structure of my comments loop will look like. Also, do I fill the comments loop with template tags to structure my comments, like with the index loop? The themes I’ve looked at leave me a bit confused.
Maybe a visual example will help. So if my index loop conditional statements look kinda like this.
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
What is the basic equivalent for the comments loop? Should I be placing coding like this in between comment loop conditional statements to form my loop?
<p class="reply_author"><?php comment_author(); ?></p> <p class="reply_time"> <?php comment_date(F jS, Y g:i a); ?></p> <p class="reply_body"><?php comment_text(); ?></p>
Thx so much for any help. ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Conditional Statements for Comments Loop/Loop Structure’ is closed to new replies.