Articles of comments

Sync comment data

I have a site that used Facebook comments for a period of time and then removed them for native WP comments. I was able to write a function that grabbed all the comments and re-inserted them into the WP database (as FB comments do not store in WP). However, Facebook’s OpenGraph API does not provide […]

Display the number of unseen comments on a page since the user last visit

The community is private and it has several pages /wordpress /design /etc . When users go to those pages the only thing they can do is to comment. Now, what I am trying to do, Idk if possible, but if it is I need some directions/hints on what too search for. Instead of those […]

How to remove comment link title attribute?

When I hover over any post’s comment link, I see the title: “Comment on Post Title”. How can I remove it? I could not find this text in the theme. Edit: Here’s the source which generates the comments link: <?php comments_popup_link( __(‘0’, ‘domain’), __( ‘1’, ‘domain’), __(‘%’, ‘domain’)); ?>

where to modify get_comment_author_link()?

Whenever a user presses on a comments author it redirects the user to the site which was enetered by user. I just want to add the target=”_blank” element. where I can modify this? In file i see only this: get_comment_author_link()

How to load javascript file on homepage in WordPress in order?

I am using a quicktags plugin, which was not loading on the home page, now it does, but it does it on the wrong place. How can I solve this? I want the quicktags.min.js file to load first, rather than the basic-comment quicktags… I am using this script: add_action( ‘wp_enqueue_scripts’, ‘ron_scripts’ ); function ron_scripts(){ if(is_home()){ […]

Loading post comments after clicking a button

Is it possible to load site comments on-demand instead of having them always display at the bottom of the post? Like by clicking on Load Comments…. You can check They are using Disqus comment system which loads by clicking. How could I achieve that?

Add Div to Comment Form

I have some code that displays my comment form and my custom validation, what I’d like to do is add a div right underneath the title, but I’m not sure how to do that because that code is generated… The Code: <?php $comment_args = array( ‘title_reply’ => ‘Leave a Comment’, ‘comment_notes_before’ => ”, ‘fields’ => […]

How can I get a list of comments by target

I’ve been looking at the classes WP_Comment_Query and WP_Meta_Query but to be honest, I can’t figure out how to use them together. I want to query the database for comments where wp_posts::post_author == X and wp_comments::comment_post_id == wp_posts::post_id. Could anybody give an example of usage? Since SQL is not my thing, and this next question […]

Load comments.php template outside the post loop

I’m loading a post via ajax and outputting using $post = get_post( $post_ID ); Is there a way to load the comments.php template after I’ve output my post? I tried using: global $withcomments; $withcomments = true; comments_template(); But it’s not within the loop so it’s not loading the template. I’m trying to get my comment […]

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 comments on their posts. Under dashboard settings > discussions > Before a comment appears– Selected: Comment must be […]