Support » Fixing WordPress » Show Comments by Default

  • Seems like this should be simple to do, but I can’t find a definitive answer anywhere. How do I show all comments when a post is viewed, rather than requiring a click from a user?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter DevonTT

    (@devontt)

    Is this impossible? Is it beyond everyone?

    Seriously, I’ve been trying to get an answer to this for days now. Nobody seems to know–or, if they do, they’re not telling.

    I don’t know where else to go for help.

    Snap! I’d like some answers to this question as well if someone has some educated answers to give…….please!

    oops

    maybe THIS is the answer?

    ` In Mass Edit Mode, the Table of Comments displays the following columns for each comment:

    * * – The Checkbox for that comment.
    * Name – The name given by the author of the comment.
    * E-mail – The e-mail address given by the author of the comment.
    * IP – The IP address of the computer from which the author sent the comment.
    * Comment Excerpt – The first twenty words from the comment text.
    * Actions
    o View – Views the entire comment as
    o Edit – Allows you to edit the information in the comment.

    Thread Starter DevonTT

    (@devontt)

    Did that work for you? It didn’t for me. The posts still opened with the comments hidden.

    Thread Starter DevonTT

    (@devontt)

    Apparently nobody knows the answer to this.

    I’m also surprised by how hard it is to find the answer to this. I’ve seen it done in several WP blogs but I can’t seem to find the answer despite searching both here and on the general web.

    I’m also surprised by how hard it is to find the answer to this. I’ve seen it done in several WP blogs but I can’t seem to find the answer despite searching both here and on the general web.

    I need to do this too. The comments have to show and the link is too small. People miss it.

    martindw

    (@martindw)

    i found this in an old article but it still works:

    Just add:

    <?
    if(!$single){
    $withcomments = TRUE;
    }
    ?>

    to the top of home.php in your template directory
    followed by:
    <?php comments_template(); ?>
    there where you want to display the comments.

    It worked for me!

    Martindw,
    Im quite new to wordpress, but i cant find the home.php where you are writing about. Do you know how to show the comments in the recent versions of wordpress?

    it appears to work when you put it in index.php in your template folder.

    Thanks for this…I was looking for the same thing and this did it. D

    With the following code implemented with the index.php in your themes folder:

    <?php get_header(); ?>
    <?
    if(!$single){
    $withcomments = TRUE;
    }
    ?>
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    <?php comments_template(); ?>
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    You should have what you want for your comments display.

    …and I believe this thread is RESOLVED, lol

    😉

    ECS Dave

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Show Comments by Default’ is closed to new replies.