• Resolved unlimit3d1

    (@unlimit3d1)


    Hi , I am a new in wordpress theme developing, and i get a little confused about comments.php.
    I did my best, but i still can’t make it run , especially, replay link button. Please help ! There is the code of comments.php

    <?php if ( have_comments() ) : ?>
    <div class=”gray-border”>
    <h4><?php printf( _n( ‘One Comment’, ‘%1$s Comments’, get_comments_number() ),number_format_i18n( get_comments_number() ) ); ?></h4>
    </div>
    <div class=”gray-border”>

      <?php wp_list_comments(); ?>
      <?php $args = array(
      ‘walker’ => null,
      ‘max_depth’ => ‘3’,
      ‘style’ => ‘ul’,
      ‘callback’ => null,
      ‘end-callback’ => null,
      ‘type’ => ‘all’,
      ‘reply_text’ => ‘Reply’,
      ‘page’ => ”,
      ‘per_page’ => ”,
      ‘avatar_size’ => 30,
      ‘reverse_top_level’ => null,
      ‘reverse_children’ => ”
      ); ?>

    <div class=”comments-nav clear”>
    <?php paginate_comments_links(); ?>
    </div>
    </div>
    <?php else: ?>
    <div class=”gray-border”>
    <h4>No comments</h4>
    </div>
    <?php endif; ?>

    <div class=”gray-border”>
    <?php if ( ! comments_open() ) : ?>
    <h4>Comments are closed.</h4>
    <?php else: ?>
    <h4>Leave a Comment</h4>

    <form action=”<?php bloginfo(‘url’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
    <input type=’hidden’ name=’comment_post_ID’ value='<?php echo $post->ID; ?>’ id=’comment_post_ID’ />
    <input type=”text” value=”Name” name=”author” onfocus=”if(this.value == this.defaultValue) this.value = ””><label>Name / Alias (required)</label>

    <input type=”text” value=”Email” name=”email” onfocus=”if(this.value == this.defaultValue) this.value = ””><label>Email Address (required, not shown)</label>

    <input type=”text” value=”” name=”url”><label>Website (optional)</label>

    <textarea rows=”7″ cols=”60″ name=”comment”></textarea>

    <input type=”submit” id=”submit” value=”Add Your Comment” />
    </form>
    <?php endif; ?>
    </div>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘replay link dont'work….’ is closed to new replies.