Witam, męczę się z tym już dłuższy czas i chyba potrzebuje pomocy.
Próbuje zamienić zwykły szablon html na szablon WP i stanąłem na szablonie do komentarzy.
Nazwa komentującego się wyświetla a data i komentarz już nie. Może mi ktoś doradzić co robie źle? Będę baaardzo wdzieczny

  1. <?php
  2.  
  3. if ( post_password_required() ) {
  4. return;
  5. }
  6. ?>
  7.  
  8. <div class="col-md-12 post-comments">
  9. <?php if ( have_comments() ) : ?>
  10. <h2 class="section-title">Comments(<?php comments_number('0', '1', '%'); ?>)</h2>
  11. <ul class="comments clearfix">
  12. <!-- comment -->
  13. <li>
  14. <div class="user-img">
  15. <img alt="image" src="images/comment-1.png">
  16. </div>
  17. <div class="comment-content">
  18. <div class="comment-info">
  19. <div class="user">
  20. <a class="user-name" href="#"><?php comment_author(); ?></a>
  21. </div> <!-- .user -->
  22. <div class="date">
  23. <a href="#"><?php comment_date(); ?></a>
  24. </div>
  25. </div> <!-- .comment-info end -->
  26. <p class="comment-text"><?php comment_text() ?></p>
  27. </div> <!-- .comment-content end-->
  28. </li>
  29.  
  30. </ul>
  31. <?php endif; // have_comments() ?>
  32. <?php
  33. // If comments are closed and there are comments, let's leave a little note, shall we?
  34. if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
  35. ?>
  36. <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p>
  37. <?php endif; ?>
  38. </div> <!-- .col-md-12 .post-comments end -->