Tagged Questions

Comments allow your website's visitors to have a discussion with you and each other. When you activate comments on a Page or post, WordPress inserts several text boxes after your content where users can submit their comments.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

URLs to user page is broken

My domain is http://mongage.com I don't know what happened to my site. the user URL linking to author/user page is broken. I switched to a new theme, but no success. I am using thentythirteen and the ...
0
votes
1answer
66 views

get_comments not working consistantly with post_id

I am trying to get comments from another post. I am getting the post_id and doing a check to see if it has comments I can get the comments for the current post every time but for the other post I am ...
0
votes
1answer
107 views

Custom Nested Wordpress Comments with avatar

I am developing a theme and has no idea how wordpress handles the comment outputs. I have wp_list_comments in my comments.php, but I'm not sure how to customize the output to get the desired output ...
0
votes
0answers
32 views

Adding an input field to the comment form, and not letting it submit if any info is in it

I am working on a WordPress plugin that adds a hidden input field into the comment form. I have the code in place that adds the input field in, using this code. function hiddeninput_more_comments( ...
0
votes
1answer
21 views

Batch approve comments

Akismet went crazy and sent several hundred comments to spam. Right now, I have to manually mark each comment as "Not Spam" and then manually move all of them from Pending to Approved. Any way to do ...
1
vote
1answer
67 views

php function to display commenter username or login

I want to display the commenters username or login name in a comment template. I know there is a function comment_author_link(), but this displays the "display name publicly as" name and not ...
1
vote
1answer
88 views

User can post only one comment per day on one page

This code count comments per day on all pages. I want that will count only on one page for 1 day. So my case: on a page with an ID of 1, a user can comment with out any limit, but on a page with an ...
0
votes
0answers
56 views

Comments Template shows, but not the comments

I've customized a twentytwelve theme, changed the index and content, nothing else. Now, I've lost the comments. Google says to call this first: <?php comments_template(); ?> But, everywhere ...
1
vote
2answers
21 views

How should I get the original comment while processing the reply

I'm working on a comments section for my template. And I need to do something like this: Comment: -This was my original comment And this is my reply to the original comment. So I wanna cite the ...
0
votes
1answer
33 views

3rd Party Login in wordpress

I have two sites. One on wordpress and one non wordpress site. Now, I have used the header and footer from my non-wordpress site. What i want is that if user logs in on my non-wordpress site then he ...
1
vote
1answer
80 views

Convert comments to Custom Post Type

Currently, I use WordPress as a Q&A website where users can register, ask questions and give answers as well. I use the AskIt theme from ElegantThemes which uses the default WordPress Post Types ...
0
votes
3answers
105 views

How to change commenter links to /user/user_id?

I would like to change the commenter links as shown in this screenshot: In my test plugin at GitHub I have first tried the following code: define('PROFILE', '<a href="/user/%s" rel="external ...
0
votes
0answers
45 views

wordpress php show comments only from user AND replies

I'm trying to add a comment section to a user profile, it'll act as a way of communicating between the user and the admin. In the user section I only want to show comments from the logged in user, and ...
0
votes
0answers
77 views

Change id=“respond” to the comments container

On the same page, I have 3 comment threads. Each comment has a meta that tells in which tread they have to be displayed in. At the end of each thread, I have a form to post a comment in this specific ...
0
votes
0answers
15 views

Comment Notification window always loading and does not return anything

Previously, whenever people make comments I would get a little orange box lighting up at the top of the page indicating that there are comments to review. However recently I've noticed that it isn't ...
0
votes
0answers
136 views

Add comment meta

I need to add my custom meta to the new comments. Here is what I've done : /************************************************************************/ /* Add meta to comments ...
0
votes
1answer
356 views

Disable comments and pingbacks on old custom post types

This SQL code will disable pingbacks on old posts and pages: UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post'; UPDATE wp_posts SET ping_status='closed' ...
0
votes
0answers
23 views

Add comments to any of several posts in an archive listing?

I just had a client ask for this and I am not sure it is even possible (or doable in anything close to staying in our time constraints/budget). I have a custom post type that only consists of very ...
0
votes
1answer
76 views

Inserting comments via a procedure

I've been playing arround with procedures and tried putting the comment insert into a procedure. I've got some trouble and was wondering if you guys could take a look. function ...
0
votes
0answers
39 views

Long query apache error from spam comments

My hosting company recently turned on the error reporting for slow queries in php/apache and we have seen the error logs get flooded with errors all from queries requesting spam comments on the front ...
0
votes
1answer
315 views

Enable nested comments in Theme

I am trying to enable nested comments in my theme. I am new to all this stuff but I am doing my best. This is the code that I have in my comments.php <?php if ( get_comment_pages_count() > 1 ...
0
votes
0answers
18 views

Stylizing Threaded/Nested Comments

I'm creating my own theme to WordPress. I got problem with nested comments. I don't wanna limit the levels to reply, but I would like them to stay in that format: This is the code I'm using: <ol ...
1
vote
0answers
42 views

Strategies for coping with hyperagressive spambots?

A couple of my sites are getting slammed by a hyperagressive distributed spambot. It's just pure link spam. It all comes from one user name, but from a variety of IPs. Akismet is catching the spam, ...
1
vote
1answer
49 views

Send Notifications to All Admins

I want to, hopefully without a plugin, get and loop through all admin accounts and notify each admin when a comment has been posted or a user has registered, etc. I tried to look into this but all the ...
0
votes
1answer
20 views

comment files and s

I am building a custom template and would like to incorporate comments and replies using the standard WordPress core. What files and scripts do I need? I copied a comments.php file but the replies ...
0
votes
1answer
35 views

Showing recent post of category in page

Any ideas, how I should do this: Recent post (with comments) shown in page? I need fixed url example.com/question that shows the most recent post, style should be same as in normal one post? Can I ...
1
vote
1answer
27 views

Second comments section for one post/page

For a project, I need to have 2 comments sections related to the same post/page. Is there a way or a plugin to do that ? By default, Wordpress allow only one comment section for one post/page. Thanks ...
0
votes
1answer
305 views

woocommerce allow users to select or use avatar

I am working on constructing a ecommerce site that is run by woocommerce and the free woo theme artificer. Standard with the plugins there is a my account page which allows you to put in basic ...
3
votes
3answers
133 views

How to Block Access to Standard Login Flow and Comment Flow

I've set up custom flows on my Wordpress blog for login, signup, and commenting. I would like to password protect the standard login flow so only I can use it, and block access entirely to the ...
1
vote
1answer
34 views

comments in Admin

I'm confused about what the Comments section on the posts in the Admin actually does. I have Comments turned on in Screen Options for a post. When I display a post, I see a Comments box. If I enter ...
1
vote
0answers
82 views

Posting comment returns 404

I've been tracking an issue in one of our WP installations and keep coming up short of a solution. One of our websites is installed in a sub-directory of our main website. Both are WP installations. ...
0
votes
1answer
76 views

Custom comments list, right depth

I created a custom comments_list() function, it works fine, the only problem is to show child comments inside the parent div. It works well with first and second depth levels but not for others. This ...
0
votes
0answers
12 views

How do I disable comments on a page? [duplicate]

I want to disable comments on my pages. That means there should be no comment form, no message asking to log in in order to post comments, nothing. Under Settings > Discussion is the option "Allow ...
1
vote
0answers
66 views

Comments on Author page

Update: Ok,the DEBUG log says: PHP Notice: Undefined offset: 0 in /home/content/00/8437600/html/test/wp-includes/query.php on line 3105 PHP Notice: Trying to get property of non-object in ...
1
vote
3answers
169 views

Why are authors allowed to approve comments on their posts? How to revoke privilege?

I was under the impression that only admins/editor roles can approve comments however our authors are able to do so as well on their own posts. I want to disable the ability for an author to approve ...
0
votes
1answer
85 views

Hide comments and posts posted by other user

I've created a user with role Contributor, when i logged in as Contributor all the posts and comments are listed in the dashboard. How to disable this? I just want to see the post made by ...
0
votes
0answers
76 views

Changing theme from twentytwelve to twentythirteen comments not working

I have a wordpress blog located HERE. A couple of days ago I changed the child theme from this blog over from twentytwelve to twentyfourteen. As a result now, my comments box at the bottom of each ...
0
votes
0answers
20 views

Prevent moveform() to moving the original location of comment form

I have a post with comment enabled, also enabled threaded comment with max level 3. Each time I want to do a comment reply, the form comment box is moving to the comment which I want to reply. But I ...
0
votes
1answer
544 views

Success message in comment form

I am using wordpress 3.8. I am using comment_form(); I need to display a success message on successfully posted comment on blog. How to do this?
0
votes
1answer
41 views

Comments from other blogs are getting added to my blog?

Today I started receiving a ton of requests to moderate comments on my blog, but when I looked at the comments they are clearly from multiple other people's blogs. What could be the cause of this and ...
0
votes
0answers
29 views

set custom value on default admin columns based on row values

I added some foreign key to wp_comments db table. Some comments could be indipendent from post. For these comments I've comment_post_ID set to 0. So i need something like: ...
0
votes
1answer
60 views

Let both the admin and post author update comment meta

I have a function which lets the post author set the "best comment". I want the admins to also be able to set the "best comment". Who can this be best achieved? // Set Best comment for post ...
0
votes
1answer
56 views

Do I need to deal with WordPress SQL Injection

Do I need to prepare strings against MySQL Injection when inserting into the database using a WordPress comments function such as this: $data = array( 'comment_post_ID' => $post_id, ...
0
votes
0answers
5 views

Store comments that can be searchable and displayed

I am using a theme and plugin that allows you to create a listing of a business and then users can review it like Yelp. The review function works off the comments section and allows users to add a ...
1
vote
0answers
22 views

How-To and Troubleshooting Canonical Links for Paginated Comments

It seems that when you paginate comments, the additional pages don't have their canonical links point back to the original page. This would seem to lead to duplicate content issues (i.e. same post, ...
0
votes
0answers
25 views

How to force users to nest their comments

I am trying to figure out how to force commenters to use threaded comments (and not the general comment box at the bottom of the post) on one particular post. I want only admins to be able to post new ...
0
votes
0answers
49 views

wp_trash_post retrashes already trashed comments?

I have a few mail- and update_user_meta functions that fires when a post, comment or child comment gets thrashed. So when I trash a comment with trash_comment, a mail get sent to the author: "Hey, ...
1
vote
1answer
199 views

How to limit users to one comment per post

I am using WordPress as a petition site and hacking the comments system to work as the petition signup. I would like to find out how I can limit a user to post only one comment per post. So far I can ...
0
votes
1answer
46 views

transition_comment_status gets called when untrashing comments

I can't seem to figure out why untrashing a comment, calls my "approve_comment_callback"-action. Any ideas? I just don't want it to send two emails at the same time, when I untrash a comment. Here ...
0
votes
0answers
12 views

Updating comments with replies

I looked around and didn't see any other questions on this topic, so here's a shot in the dark. I am trying to update the meta on a parent comment when it receives a reply. Here's the code I have so ...