2017-11-02 1 views
0

single.php에 대한 의견을 포함하고 싶습니다. 추가 코드 또는 추가 파일을 추가해야하는 경우 알려주십시오. 미리 감사드립니다. 이것은 내 single.php 파일입니다<? php comments_template ('', true); ?> 작동하지 않습니다.

<div class="col-m-9"> 
    <?php if(have_posts()) : ?> 
     <?php while(have_posts()) : the_post(); ?> 
      <h3><a href="<?php the_permalink(); ?> "> 
      <?php the_title(); ?></a></h3> 
      <?php the_post_thumbnail('portfolio-thumb'); ?> 
      <?php the_content(); ?> 
      <?php comments_template('', true); ?> 
     <?php endwhile; ?> 
    <?php else : ?> 
     <h2>404 not found:</h2> 
    <?php endif; ?> 
</div> 

하지만 그것은 주석 옵션을 보여주는 아니에요. 나는 오랫동안 노력했다. comments.php을 추가하지 않았습니다.

+0

다음 링크는 도움이 될 수 있습니다. https://codex.wordpress.org/Function_Reference/wp_list_comments –

답변

관련 문제