WordPress.org

Ready to get started?Download WordPress

Forums

Show Comments by Default (15 posts)

  1. DevonTT
    Member
    Posted 7 years ago #

    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?

  2. DevonTT
    Member
    Posted 7 years ago #

    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.

  3. smudger
    Member
    Posted 7 years ago #

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

  4. smudger
    Member
    Posted 7 years ago #

    oops

  5. smudger
    Member
    Posted 7 years ago #

    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.

  6. DevonTT
    Member
    Posted 7 years ago #

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

  7. DevonTT
    Member
    Posted 7 years ago #

    Apparently nobody knows the answer to this.

  8. ryanbehrman
    Member
    Posted 7 years ago #

    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.

  9. ryanbehrman
    Member
    Posted 7 years ago #

    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.

  10. Pablosan
    Member
    Posted 7 years ago #

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

  11. martindw
    Member
    Posted 7 years ago #

    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!

  12. marteltor
    Member
    Posted 6 years ago #

    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?

  13. marteltor
    Member
    Posted 6 years ago #

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

  14. Darren1969
    Member
    Posted 6 years ago #

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

  15. ECSDave
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags