0
votes
1answer
12 views

User's Comments Number: Storing it in a meta field for different uses

As I am building a new website where tracking users' information is key to engage, etc..., I found it important to be able to store users' number of counts as a meta. The main reason for storing the ...
1
vote
1answer
56 views

disable comments if array exists

This is the code which is registering the function for rewrite_endpoints(): function wpa121567_rewrite_endpoints(){ add_rewrite_endpoint( 'comments', EP_PERMALINK ); add_rewrite_endpoint( 'stats', ...
1
vote
1answer
83 views

Can wp_list_comments output into variable?

Is there any way how to output wp_list_comments() into a variable? Something like $output = wp_list_comments(array('reverse_top_level' => false ), $comments); I am writing a plugin and it would ...
1
vote
1answer
35 views

Where to add the permalink in this function?

Below is a function that displays the latest 4 approved comments on my homepage, I wrote this almost a year ago, and for the life of me, it's gone completely from my head, All i want to do is add a ...
0
votes
2answers
47 views

Undo a function that is not (seemingly) hooked to an action?

I am using the popular Disqus plugin. To use this plugin effectively, they advise you to change the URL on the front page to end in #disqus_thread. I know how to easily do this in jQuery, but I ...
0
votes
2answers
391 views

Getting comment count per post not working

I have this function: <?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?> <?php while ($popular->have_posts()) : $popular->the_post(); ?> ...
1
vote
1answer
50 views

How to assign classes to all elements?

Is it possible to assign classes to elements of certain type? For example, all paragraphs in the post body or comment body should have class="paragraph", all unordered lists in post body should have ...
-3
votes
1answer
467 views

Getting full code of wp_list_comments instead of replacing it

I am wondering if this is possible, because I don't want to edit the standard/default lay-out of the comments. I already tried that, but somehow it won't put the list items in my div sections. That's ...
0
votes
2answers
112 views

Wp admin - Set default value to 999 in comments

When you are at the comments menu in wp-admin you only see 20 comments at the time, so if you want to delete alla comments you can ONLY mark the 20 comments you see on current page. It dosent mark ...
1
vote
1answer
45 views

comments_number display outside specified span

I want to display the number of comments a particular post has, so i thought i'd use comments_number, however when i use this the comment number gets printed outside of the span it's supposed to be ...
0
votes
1answer
156 views

Function to prevent users from trashing comments

Is there any way to prevent/hide trash button for comments? Note that I only want to prevent users from emptying the trash for comments. Can't seem to find a way. Is there any possible way to do that ...
3
votes
1answer
2k views

How to export comments in WordPress?

I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported. I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
3
votes
2answers
233 views

How to get comments with mixed status using get_comments?

Is there a way to get comments with more than one status using get_comments function? Let's say I would like to get both trash and hold comments. It is possible to do the same with posts: ...
0
votes
1answer
230 views

What is the Difference in bones_comments() and comments.php

I started to use Bones HTML5 Wordpress Starter Theme, but a little confuse with some built-in function in bones, There is function bones_comments() in functions.php but I cannot find anywhere on the ...
3
votes
1answer
91 views

How to prevent deleting of comments when deleting a post

Like the title says: How can i prevent Wordpress from deleting post comments when i delete a post? What i am trying to accomplish is that i want to merge all comments from different posts to posts ...
0
votes
1answer
57 views

Comment Function

How would I make this Function display only the latest 5 comments? function showLatestComments() { global $wpdb; $sql = " SELECT DISTINCT comment_post_ID, comment_author, comment_date_gmt, ...
0
votes
1answer
81 views

Incorrect redirect after commenting

I noticed not too long ago that after posting a comment the user is redirected to a page with this url ...
0
votes
1answer
145 views

How to remove “login to reply” from individual comments [duplicate]

Possible Duplicate: How to remove or replace the log-in link for comment replies? I want to get rid of the unnecessary "log in to reply" link from every individual comment when a user is ...
0
votes
1answer
92 views

Wordpress comment_form() does not display actual comments

Maybe I did not understand the role of comment_form(). After pasting this in my wordpress single.php I get just the form for submitting comments but NOT THE ACTUAL COMMENTS. Is this a bug, or the ...
0
votes
2answers
1k views

How can I remove the title “leave a reply” in the comment box in twentyeleven?

I would like to remove "leave a reply" in the comment form in twenty eleven. How can I do this? Thanks in advance.
1
vote
4answers
413 views

Remove Comments Metabox but still allow comments

I already know how to remove a metabox from my custom post type edit page. However I want to remove the comments metabox but still allow commenting for the post. Because I notice when I do remove ...
1
vote
1answer
183 views

Change comments form title on a page by page basis

I'm looking to change the comments form title (my theme defaults this to "Leave a Comment" or "Leave a reply to"). I thought perhaps I could add a hook to comment_form_defaults but my snippet below ...
0
votes
1answer
745 views

comments_popup_link without echo?

I would like to just get the HTML that comments_popup_link generates, and echo it later on. I don't see the comments_popup_link has an $echo parameter, and I don't see a get_comments_popup_link ...
1
vote
1answer
163 views

Display the number of user comments

I would like to display, on the author/user/contributor page, the number of comments the user has posted, and the number of comments he has received on his posts. Is it possible? Thank you !
0
votes
2answers
141 views

Alter required message using comment form api

I prefer not to use asterisk markers on required fields in the comment form. So I'd like to remove or alter the 'required fields are marked (*)' message. Being a good wordpress user, I'd like to do ...
0
votes
2answers
288 views

Best way to tell if a comment is from a user?

I've got an if ($comment->user_id) block to pick an default admin comment gravatar (different than a non-user's). But I'd still like this gravatar to be used if a user comments using their ...
0
votes
2answers
1k views

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 ...
0
votes
1answer
230 views

If paginated comments don't span to a second page, how do I hide the div wrapper?

I have a div wrapper around my comments pagination. I have the comments set to paginate in the Wordpress admin at 10 comments per page. I want to hide the div wrapper if there are less than 10 ...
0
votes
1answer
694 views

Why could my comment_form variable not be working?

I'm working on a custom theme that is based off of Starkers html5 3.0 and use that theme's comment system. I have followed custom_form tutorials by Otto, Soapbox Dave, forlogos, and Deluxe Blog Tips. ...
0
votes
1answer
698 views

Comment Form - E-mail Not Required!

I need to know how to make one of the fields on my comment not NOT required. How can I set the e-mail field in the comment field to not be required, but optional?
1
vote
1answer
83 views

How to display html in only the first level of WP comments?

How would I display html code in only the first level of threaded comments? Example L1 Comment ----L2 Comment --------L3 Comment L1 Comment I have a piece of html code that contains basically reads ...