Forums

My Comments Are Not Working?! (5 posts)

  1. Will845
    Member
    Posted 2 years ago #

    My comments stopped working. When I click them nothing happens or it goes to the category page.

    http://www.nickjonasnews.com

  2. Samuel B
    moderator
    Posted 2 years ago #

    a guess would be you have a plugin conflicting with the jquery of the theme

  3. Will845
    Member
    Posted 2 years ago #

    I tried disabling the plugins I added but no luck.

    Heres my comments.php

    <?php
    
    $comment_posts = get_option('woo_comment_posts');
    if (empty($comment_posts) || $comment_posts < 1) $comment_posts = 5;
    
    global $wpdb;
    
    $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
    comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved,
    comment_type,comment_author_url,
    SUBSTRING(comment_content,1,50) AS com_excerpt
    FROM $wpdb->comments
    LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
    $wpdb->posts.ID)
    WHERE comment_approved = '1' AND comment_type = '' AND
    post_password = ''
    ORDER BY comment_date_gmt DESC LIMIT ".$comment_posts;
    
    $comments = $wpdb->get_results($sql);
    $output = $pre_HTML;
    
    foreach ($comments as $comment) {
    
    ?>
    <li>
        <?php echo get_avatar( $comment, '35' ); ?>
    
    	<a href="<?php echo get_permalink($comment->ID); ?>#comment-<?php echo $comment->comment_ID; ?>" title="on <?php echo $comment->post_title; ?>">
    		<?php echo strip_tags($comment->comment_author); ?>: <?php echo strip_tags($comment->com_excerpt); ?>...
        </a>
        <div style="clear:both"></div>
    </li>
    <?php
    }
    ?>
  4. Samuel B
    moderator
    Posted 2 years ago #

    I don't think it's just your coments. With IE8 I don't get the permalinks at all on any article

  5. Will845
    Member
    Posted 2 years ago #

    So where should I begin to fix it?

Topic Closed

This topic has been closed to new replies.

About this Topic