• Resolved kylftch

    (@kylftch)


    I’ve added some pages to my blog but once somebody comments on them, the option to leave a comment is no longer available, limiting my pages to only 1 comment. Does anybody have any idea why this is? Comments work fine and are unrestricted on posts. I could find no answers from searching these forums or the LightWord website.

    Under my pages, the “Allow Comments.” setting is checked.

    Under my discussion settings, “Allow people to post comments on new articles,” “Users must be registered and logged in to comment,” and “Enable threaded (nested) comments 5 levels deep” are checked.

    I’m using the most recent version of WordPress (2.9.1)
    I’m using the most recent version of the LightWord theme by Andrei Luca (1.9.6)
    https://www.lightword-theme.com/
    https://www.ads-software.com/extend/themes/lightword

    I don’t have any plugins activated.

    This is the code for “Page Template (page.php):”

    <?php get_header(); ?>
    <div id="content-body">
    <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'; ?> id="post-<?php the_ID(); ?>">
    <h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    <?php edit_post_link(__('Edit this page','lightword'), '', ''); ?>
    
    <?php the_content(''); ?>
    <?php if(function_exists('wp_print')) { print_link(); } ?>
    <?php wp_link_pages('before=<div class="nav_link">'.__('PAGES','lightword').': &after=</div>&next_or_number=number&pagelink=<span class="page_number">%</span>'); ?>
    
    </div>
    <?php if ( comments_open() && $lw_disable_comments == "false" ) : comments_template(); endif; ?>
    <?php endwhile; else: ?>
    
    <h2><?php _e('Not Found','lightword'); ?></h2>
    <p><?php  _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>
    
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any help would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kylftch

    (@kylftch)

    And this is the code for “Comments (comments.php):”

    <?php
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');
    if ( post_password_required() ) {
    echo '<p class="nocomments">';
    echo _e('This post is password protected. Enter the password to view comments.','lightword');
    echo '</p>';
    return;
    }
    $comments_nr = fb_get_comment_type_count('comment');
    $trackbacks_nr = fb_get_comment_type_count('pings');
    $oddcomment = 'alt ';
    ?>
    <div id="tabsContainer">
    <a href="#" class="tabs selected"><span><?php _e('Comments','lightword'); ?> (<?php echo $comments_nr; ?>)</span></a>
    <a href="#" class="tabs"><span><?php _e('Trackbacks','lightword'); ?> (<?php echo $trackbacks_nr; ?>)</span></a>
    <span class="subscribe_comments"><?php post_comments_feed_link(__('( subscribe to comments on this post )','lightword')); ?></span>
    <div class="clear_tab"></div>
    <div class="tab-content selected">
    <a name="comments"></a>
    
    <?php if ( $comments ) : ?>
    <div id="comentarii">
    <ol class="commentlist">
    <?php wp_list_comments('type=comment&callback=nested_comments'); ?>
    </ol>
    
    <?php if ((int) get_option('page_comments') === 1 && get_comment_pages_count() > 1): ?>
    <div class="next_previous_links_comments">
    <span class="alignleft"><?php previous_comments_link(__('&laquo; Older Comments','lightword')); ?></span>
    <span class="alignright"><?php next_comments_link(__('Newer Comments &raquo;','lightword')); ?></span>
    <div class="clear"></div>
    </div>
    <?php endif; ?>
    </div>
    
    <?php else : ?>
    <?php if ('open' == $post->comment_status) : ?>
    <p class="no"><?php _e('No comments yet.','lightword'); ?></p>
    <?php else : // comments are closed ?>
    <p class="no"><?php _e('Sorry, the comment form is closed at this time.','lightword'); ?></p>
    <?php endif; ?>
    <?php endif; ?>
    
    <?php if ('open' == $post->comment_status) : ?>
    
    <br /><div id="respond">
    <h2 style="background:transparent;"><?php comment_form_title( __('Leave a comment', 'lightword'), 'Reply' ); ?></h2>
    
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.','lightword'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
    <?php else : ?>
    
    <form action="<?php bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    <?php if ( $user_ID ) : ?>
    <p><?php printf(__('Logged in as %s.','lightword'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','lightword') ?>"><?php _e('Log out &raquo;','lightword'); ?></a></p>
    
    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p>
    
    <?php else : ?>
    
    <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea></p>
    <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    <label for="author"><small><?php _e('Name','lightword'); ?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p>
    
    <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    <label for="email"><small><?php _e('Mail (will not be published)','lightword');?> <?php if ($req) _e('(required)','lightword'); ?></small></label></p>
    
    <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    <label for="url"><small><?php _e('Website','lightword'); ?></small></label></p>
    
    <?php endif; ?>
    
    <p><input name="submit" type="submit" id="submit" tabindex="4" accesskey="s" value="<?php echo attribute_escape(__('Submit','lightword')); ?>" /><?php cancel_comment_reply_link(__('( Cancel )', 'lightword')); ?><br class="clear"/></p>
    <?php comment_id_fields(); ?>
    <?php do_action('comment_form', $post->ID); ?>
    </form>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    </div>
    
    <div class="tab-content">
    <?php if($trackbacks_nr == "0" && pings_open()) { echo "<p class=\"no\">"; ?><?php _e('No trackbacks yet.','lightword'); ?><?php echo "</p>"; } ?>
    <?php if(!pings_open()) { echo "<p class=\"no\">"; ?><?php _e('Trackbacks are disabled.','lightword'); ?><?php echo "</p>"; } ?>
    <?php foreach ($comments as $comment) : ?>
    <?php $comment_type = get_comment_type(); ?>
    <?php if($comment_type != 'comment') { ?>
    <div class="trackbacks"><?php comment_author_link() ?></div>
    <?php } ?>
    <?php endforeach; ?>
    </div>
    </div>

    I’m having the same issue. I left a comment on the author’s blog, but haven’t received a response yet.
    https://www.lightword-theme.com/lightword-theme/changelog

    Thread Starter kylftch

    (@kylftch)

    i left him a comment linking back to this post, but it needs to be approved. hopefully the author can help us out if somebody else doesn’t get around to it first.

    Hi guys,
    thanks for your messages! I fixed this bug in newest release of lightword (v1.9.8)

    Thread Starter kylftch

    (@kylftch)

    awesome! i’ve updated and it’s working perfectly for me now ?? i’m glad too because i absolutely love this theme. thanks a lot and keep up the great work!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can only leave 1 comment per page (LightWord)’ is closed to new replies.