• I’d like to display the full text of each comment after the relevant post on the index page. I’ve found responses for doing this in 1.2, but not 1.5. Have tried using <?php coments_template(); ?> but this doesn’t do anything on the index page.
    Can anyone help? Surely there’s an easy way!
    Thanks – n
    neilhardie.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • *bump*.
    Me too. All the 1.2 instructions do not seem to work for 1.5.

    Of course, as soon as I post here, I figured out a hack. I am still open to hearing a less hacky soution from someone though.

    I used Eric Meyer’s “MW Comments/Trackbacks” plugin [1] to get acces to the mw_comments() function, which I used to populate the $comments global variable that comments.php pulls from.

    Example from my theme’s index.php:

    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this entry »'); ?>
    <?php
    $comments = mw_comments();
    include(TEMPLATEPATH . '/comments.php'); // Display comments
    ?>
    </div>

    [1] http://www.meyerweb.com/eric/tools/wordpress/mw_comments_trackbacks.html

    Hopefully this is clear and stops others from tearing their hair out as badly as i have been doing for the last few days.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display comment text on home page’ is closed to new replies.