• Can anyone give me a heads up on how to show user comments on my posts on the main page? (as opposed to only the permalinks) I know PHP well and have been toying around with WP but still can’t figure out how to do it.

    I’ve includeded comments.php and posted portions of the code on my index.php, but that doesn’t work.

    Thanks! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • In index.php inside the Loop, add the following. (I hope it won’t break something else badly; if it is, oh, well.)


    <?php
    $withcomments = true;
    comments_template();
    ?>

    This worked great! (using WP 2.0.3)

    Thanks.

    Thanks, that link totally helps out! I know some people may think that showing all comments isn’t desirable, but actually, I use wordpress for a writing class, and if i have to grade each essay by clicking comments, it takes up more time. You just saved me a lot of time! Plus it makes it easier to read the comments all while skimming down the page.

    Hello,

    I took the code snippet above and pasted it after the default ?> closing tags in the index.php files in the root directory and the wp_content directory. Neither made any change to the presentation of the comments.

    I would really like to have the comments appear at the bottom of each post on the index.php page and this looks like it’s the way to do that. I’m just not familiar enough with PHP to make the mod correctly.

    Can someone post or link me to an exact mimic of what the finished index.php content should look like after the mod? Which index.php file should I be changing?

    Thanks.

    Ok – I figured out that the index.php file that I need to be editing is the file in the themes directory. I’ve tried inserting the entire snippet at two different places, and modifying the existing Comments Template call:

    Original: <?php comments_template(); // Get wp-comments.php template ?>

    Modified: <?php $withcomments = true; comments_template(); // Get wp-comments.php template ?>

    No changes.

    Help!

    Never mind. I figured it out. I’m such an IDIOT!

    c

    Chrison600, what were you doing wrong? I’m having the same problem. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Comments on main page?’ is closed to new replies.