Szablon komenatrzy
-
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<?php /** * The template for displaying comments * * The area of the page that contains both current comments * and the comment form. * * @package WordPress * @subpackage Twenty_Fifteen * @since Twenty Fifteen 1.0 */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) { return; } ?> <div class="col-md-12 post-comments"> <?php if ( have_comments() ) : ?> <h2 class="section-title">Comments(<?php comments_number('0', '1', '%'); ?>)</h2> <ul class="comments clearfix"> <!-- comment --> <li> <div class="user-img"> <img alt="image" src="images/comment-1.png"> </div> <div class="comment-content"> <div class="comment-info"> <div class="user"> <a class="user-name" href="#"><?php comment_author(); ?></a> </div> <!-- .user --> <div class="date"> <a href="#"><?php comment_date(); ?></a> </div> </div> <!-- .comment-info end --> <p class="comment-text"><?php comment_text() ?></p> </div> <!-- .comment-content end--> </li> </ul> <?php endif; // have_comments() ?> <?php // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> <?php endif; ?> </div> <!-- .col-md-12 .post-comments end -->
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- Temat ‘Szablon komenatrzy’ jest zamknięty na nowe odpowiedzi.