Thesis Theme Custom Loop
Insert this code after the loop: <?php comment_form(); ?>
Insert this code after the loop: <?php comment_form(); ?>
For most commented posts you can use a custom loop in the sidebar for example: <h3>Most Commented Posts</h3> <?php $most_commented = new WP_Query(‘orderby=comment_count&posts_per_page=5’); if($most_commented->have_posts()) : ?> <ul class=”most-commented-posts”> <?php while($most_commented->have_posts()) : $most_commented->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/38006/<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?> (<?php comments_number(‘0′,’1′,’%’); ?>)</a></li> <?php endwhile; ?> </ul><!– most-commented-posts –> <?php endif; wp_reset_query(); … Read more
There’s an easy function a.k.a. template tag for that called paginate_comments_links()
try: <?php comment_reply_link(array_merge($args, array(‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’], ‘reply_text’ => ”))) ?>
Make sure your header.php file has this before the wp_head function: <?php wp_enqueue_script( ‘comment-reply’ ); ?> Note: Some themes may use the comment-reply function in the themes function.php file. Caution: I’ve scanned your theme and I notice it’s using an outdated version of TimThumb which is a serious security flaw. You can install the TimThumb … Read more
NVM, shame on me, I just realized I can control the depth in the wp options. Settings -> Discussion -> Enable threaded (nested) comments 2 depth
This is something works for me. See if it works for you. Here are step-by-step instrucions: STEP-1 In your theme’s loop-single.php, look for this: <?php comments_template( ”, true ); ?> Replace it with this: <?php global $withcomments; $withcomments = 1; comments_template( ”, true ); ?> STEP-2 Create front-page.php with this content: <?php /** * The … Read more
Unfortunately, WordPress does not provide any functions to select comments by date range, as far as I know. And although you could wp_delete_comment in a loop, it would take unnecessarily long. As the WordPress database entity relationship diagram shows, comments are limited to being in the wp_comments table and the wp_commentmeta table, which is convenient. … Read more
You can allow anonymous comments in WordPress in wp-admin/options-discussion.php: Just do not check Comment author must fill out name and e-mail. There is a small usability catch: Sometimes users may just forget to fill in their data. I have added a small JavaScript confirm message box asking if they really want to send as anonymous … Read more
Just use the comments_link() template tag, anywhere in your template (but within the Loop) that you need to display a link to the post comments.