[Wordpress Help] In Thesis themes, how to make comments show by default?

  • Thread starter Thread starter Deleted member 36594
  • Start date Start date
D

Deleted member 36594

Guest
If visitors wants to see the comments of a post, they will need to click on the "Show Comments" link.

Is there a way to just show the comments by default without needing the user to click the link?
 
Try this in the index.php of the theme:

Code:
<div class=?post-recent-comment?>
<?php
 $comment_array = array_reverse(get_approved_comments($wp_query->post->ID));
 $count = 1;
?>
<?php if ($comment_array) { ?>
 <span class=?comment?><?php comments_number(?No comment?,'1 comment?,'% comments?); ?></span> ? Latest by:
  <ul class=?commentlist?>
 <?php foreach($comment_array as $comment){ ?>
  <?php if ($count++ <= 2) { ?>
   <li>&lt?php comment_author_link(); ?><br /><?php comment_excerpt(); ?></li>
  <?php } ?>
 <?php } ?>
  </ul>
<?php } else { ?>
 <span class="comment">No comments so far</span>
<?php } ?>
</div>
 
Thanks.

Well, it didn't work.

But thanks for the help! I will be switching to xSite pro template soon.
 
Back
Top