• yazerty

    (@yazerty)


    Hello,

    I ‘d like that comments of a post be juste after the post on the index.php. I’d like to show comments on index.php just after each post.

    But I don’t want to have the form also. I don’t want it on my index.php (too heavy).

    I ‘ve put this in index.php in the posts loop, mais this doesn’t work at all (nothing happends) 🙁 :

    <?php comments_template(); ?>

    How could I do to show comments of each post on the index.php (but no the form to post a comment) please 😕

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter yazerty

    (@yazerty)

    If I put this :

    <?php $wp_query->is_single = true; ?>
    <?php comments_template(); ?>

    this show the dafult comments template.

    Could I make another version of comments.php ? Could I use comments-popup to make it ?

    Thread Starter yazerty

    (@yazerty)

    Mmm, that doesn’t work at all with it, because <?php $wp_query->is_single = true; ?> show my posts on index.php like they were on the single page. So, it’s bad for long posts :-/

    Is there anybody who have a solution please ??

    Thread Starter yazerty

    (@yazerty)

    nobody 🙁 ?

    I also wish to have comments listed after the post on the main page. This would be a great feature. somebody please hack 🙂

    Well, if you read the posts above – the solution has been posted. Of course, as with every hack, there is a trade-off: if you define your main page as “single” the more link or excerpt will not work on it.

    p.s.
    And if that’s not enough… use the serach button:
    http://ww.wp.xz.cn/search/comments+on+index?forums=1

    i tried to follow but couldnt get it to work.
    i could possibly do with a more simple explanation with where to inject the code and on what php file.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Show comments on index.php ?’ is closed to new replies.