Articles of comments

Displaying comment counts in WP Gallery thumbnail view

WordPress founder, Matt Mullenweg, has a great feature in his photo galleries. In thumbnail view, any photo that has a comment attached displays the comment count under the thumbnail. Look here (scroll down and you’ll see some thumbnails with comment counts): He appears to be using the built-in gallery function, but I have been […]

How to implement a WordPress comments function?

I have loop, wich create news feed, it looks like: (part of news template) News.php <div id=”content”> <div class=”scrollArea”> <?php query_posts(‘category_name=News’);?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class=”news_block”> <p class=”news_title”><?php the_title(); ?></p> <p class=”news_date”><?php the_time(‘F jS, Y’); ?></p> <p class=”news_text”><?php the_content(); ?></p> <a href=”<?php comments_link(); ?>”>Comments to this post (<?php comments_number(‘0’, […]

Styling Admin comments in WP 3.1.3

There’s a lot of documentation on how to style ‘autor’ or ‘admin‘ comments in WP, but most of it seems wildly outdated. I have a client for whom I am developing a Q&A site. I always figure it’s best to use whatever tools WordPress has already provided me with. That’s why I decided to set […]

Separate page for comments using permalinks and add_rewrite_rule

I have been at this for days now, going through plenty of answers here, guides on using .htaccess, guides on using add_rewrite_rule() within WordPress and examples throughout the web. I am not sure if there is a malfunction in my regex to detect the correct URL, or a disconnect between what I want to accomplish […]

How include comment and post count of user in this custom query

This is a listing of members with pagination <?php $total = “SELECT ID, user_nicename from $wpdb->users ORDER BY user_nicename DESC”; $totalposts = $wpdb->get_results($total, OBJECT); $ppp = intval(get_query_var(‘posts_per_page’)); $wp_query->found_posts = count($totalposts); $wp_query->max_num_pages = ceil($wp_query->found_posts / $ppp); $on_page = intval(get_query_var(‘paged’)); if($on_page == 0){ $on_page = 1; } $offset = ($on_page-1) * $ppp; $wp_query->request = “SELECT ID, user_nicename […]

WordPress comments title

This code: <?php comments_template( ”, true ); ?> Outputs: <h3 id=”comments-title”> <h2> 12 Responses to My Post. </h2> </h3> (comments template) I don’t know where this h2 tag comes from. I want to get rid of that. And customize my comments-title (so there will be h4 instead of h3 and “comments” instead of “Responses”. How […]

How to show last comment on hover?

WordPress usually has “Leave a Comment, “1 Comment,” or “% Comments” on the blog page, and I want people to be able to hover over that and have jQuery show the latest comment in a rectangular box below it (pushing down all subsequent content). Obviously they’d click through to read more comments or respond, but […]

Comment form in wordpress theme returns a javascript alert

I have a wordpress custom theme that started giving a weird error out from the blue. Every time you post a comment it will return a javascript alert with all the content of the page. I haven’t made any changes to the theme that would have effect in this so I have no idea why […]

What templates/funtions needed in custom theme to allow comments the new 3.0 way

Hi: I have been using the comments.php, comments-popup.php, single.php and loop from the Kubrick theme to create my blog functionality in themes I build from scratch. But with WP 3.0 there’s a new approach and I can’t quite get it to work. From what I’ve gathered I have the loop in the index.php, loop with […]

Embed a page within WordPress dashboard?

We’re using Facebook Comments for the comment functionality on our WordPress blog. I thought it’d be nice to embed the page with Facebook Moderation tools on the WP Dashboard. That way, we can immediately see who commented on what when we log in. I’ve looked for the functionality to embed an html page in a […]