Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shibonari

    (@shibonari)

    @esmi
    So that I can list all the comments of the posts in the index using <?php comments_template( ‘comments.php’ ); ?> 🙂

    @t31os
    I did enable $withcomments = 1.

    The comments end up in the right place, they are showing up fine, and the reply box is there too. I can even reply normally, although I end up in the post’s single.php instead of staying at index.php

    If it is possible, try modifying the default kubrick index.php and just add $withcomments = 1 and <?php comments_template( ‘comments.php’ ); ?> in the loop in case it’s hard to understand 😛

    Thanks for the replies!

    Thread Starter shibonari

    (@shibonari)

    Thanks alot!

    Silly me, I was trying all sorts of stuffs like <?php comments_template(1); ?> and etc but I just realized that I can just add $withcomments = 1;!

    Thanks alot for the help, really appreciated it 🙂

    Thread Starter shibonari

    (@shibonari)

    Hello, thanks for all the responses 😀

    I tried

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <h2 class="title"><?php the_title(); ?></h2>
    
    <div class="reply" id="reply_content_<?php the_ID(); ?>">
    <?php comments_template(); ?>
    </div> 
    
    <?php endwhile; ?>
    <?php endif; ?>

    And I got nothing 🙁

    No comments list, no comment reply box.

    All I’m trying to do is just display all the post and their comments in the index. :\

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