Comments template
-
I have the following code which I’m using for displaying comments:
<?php if ( post_password_required() ) { return; } function format_comment($comment, $args, $depth) { ?> <div class="row"> <div class="col-xs-12 col-sm-3 col-lg-2"> <div class="author"> <span><strong><?php echo $comment->comment_author; ?></strong><br/>20 november 2016</span> <a class="hidden-sm hidden-md hidden-lg" href=""><?php _e('> Reageer', 'e52'); ?></a> </div> </div> <div class="col-xs-12 col-sm-9 col-lg-10"> <div class="message"> <p><?php echo $comment->comment_content; ?></p> <a class="hidden-xs" href=""><?php _e('> Reageer', 'e52'); ?></a> </div> </div> </div> <?php } ?> <div id="comments" class="comments-area"> <?php if ( have_comments() ) : ?> <?php wp_list_comments('type=comment&callback=format_comment'); ?> <?php endif; ?> </div>
I would like to be able to use the reply function and implemented the following function:
comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])))
This results in a link: /?replytocom=1#respond
Problem is when clicking this link I would expect to be focused on the comments form and start replying but all it does is refresh the page. Do I have to activate replies in some way
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Comments template’ is closed to new replies.