Only the author of the post can respond to comments • WordPress Help

The nested comments are very good, because they encourage the debate between readers of your web / blog, but they are not always the best idea, and sometimes it would be better if only the comments of the visitors could be answered by the author of the entry .

I do not mean that visitors can not respond with their comments to the entry, but that they can not get into discussions between them .

This is especially useful for support sites, corporate blogs, or anywhere you want avoid intense, eternal, useless debates between users .

/ * Only the author of the entry can reply to comments * /

add_action ( 'pre_comment_on_post' 'wpq_pre_commenting' ) ;

function wpq_pre_commenting ( $ pid ] ) {

$ parent_id = filter_input ( INPUT_POST 'comment_parent' FILTER_SANITIZE_NUMBER _ INT ) ;

$ post = get_post ( $ pid [19659007]) ;

$ [19659023] cuid = get_current_user_id () ;

if ( ! $ post ) && $ post -> post_author == $ cuid && 0 == $ ] ] ) {

How do I prevent WordPress from storing comments IPs? • WordPress Help

Surely you already know that WordPress stores the IP of each of the users that leave comments .

Basically is a security measure because you can filter in the comments list all comments left from any IP and, if necessary, inform the authorities in case of crime.

But you may not want to store this information and offer a plus of privacy to your readers, in which case you will have to apply some of these two techniques for that WordPress does not save the IPs of the comments .

Once you save the changes it will leave the IP field blank it does not store anything.

Equally easy, or more, but with some nuance. Install and activate the plugin Remove IP . Contrary to the previous code this plugin does not remove the IP field but puts the same to all: 127.0.0.1 (best known at home at lunch time as localhost )

Well thought out! If we are going to guarantee the privacy of our users we will have to erase all previous traces. For that go to your hosting and open the tool PHPmyAdmin and, once you are in the database of your WordPress, execute the following command in the tab called SQL:

Press the button " Continue "and you have it.

WordPress 4.4 – First comment, then tell us who you are

We are already seeing more changes that we can enjoy with the new version of WordPress 4.4 although in this case it is not which is going to cause the effect WOW! that's for sure.

As you know, currently the WordPress native comment form shows the Name, Email, Web and Comment fields, in this order, so that you first identify yourself and then comment. Well the idea is to change the order .

In WordPress 4.4 if the idea prospers, first we will find the box to write the comment and then already, below, the fields to identify us .

This proposed change is mainly due to two issues:

  1. That users are more encouraged to comment, if before asking anything they have the field in the to leave their impressions, and thus not previously have that "filter" of having to identify. It's something visual, psychological if you want, but sometimes things are that stupid and a simple change as this improves usability and results.
  2. Let users use the keyboard tab on your website to jump from a field to another directly pass from the main content to that of the comment, and by the way it is easier to change from field to field.

In short, move on from this …

 form comments before wordpress 4.4 ]

to this other …

 form comments from wordpress 4.4

This change, although apparently trivial, will suppose substantial modifications of code, since the change requires that the WordPress filters and actions involved in this process be executed in a different order, in addition to the HTML output of comment_form must be different too.

If you are a developer and use any of the books of comment_form especially comment_form_field_comment and comment_form_after_fields it is better that you try your themes and plugins before the next version to ensure that everything works well.

If you want to try the new comment field, you already have it in the Alpha and Beta test site that I always have active .

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Move comments from one entry to another • WordPress Help

 man bullet

There are not many occasions when you might need to move comments from one entry to another but if you get the " need " at least you must be calm, there is only one way, but several, to get it.

And that is, either by a redirection of entries, where you would lose the positioning offered by comments, or by an error of a user commenting where it should not, or simply because it seems good, move comments from one entry to another is not only possible, it is also quite easy but not be a WordPress default option.

:: Move comments with SQL ::

If you dare to move them by SQL it only takes 3 steps:

  1. The first thing is to locate the ID of the entries, the old one and the new one, something you can easily identify in the e-administration screen ntradas, simply placing the cursor on them and looking at the number that appears in the browser's status bar. Other modes would be to use the plugin Show IDs or add a column to display the IDs . Record the numeric IDs as you need them for the second step.
  2. Access PHPMyAdmin and, in your database, create the following query SQL:

    If you only want to move the comments of an author, it would be this way:

  3. With the previous step you have moved the comments but you must also change the comment counter, because WordPress does not he does it on his own. So we finish the sequence with this new query SQL:

    Of course, in queries you must replace the s conventions by the numbers of the corresponding IDs and the numbers of the comments, of course.

 query sql phpmyadmin wordpress

:: Move comments with plugins ::

If you do not feel comfortable with SQL there is no problem, you can always use plugins that make life easier in this work, not common, but important when you need it.

  • Tako movable comments : Absolutely perfect, not only allows you to move comments in bulk from an entry to another without having to know the ID, thanks to convenient drop-down, but also allows to move a comment (and its nested) from one entry to another in a simple way. It offers everything you're used to in the forums software and more.
  • Move comments : simpler than the previous one, it only allows you to move all comments from one entry to another. That yes, functional, simple and effective.
  • Simple move comments : Even more simplified version of the previous but equally effective.

 move comments wordpress

:: Move comments with trick ::

Now, if you're one of mine and you like to mess up and make your " ñapas ", nothing better than a trick with which you do not have to do queries or install plugins, you just use WordPress to the brave .

The idea is simple: cheat WordPress . And the sequence is this:

  1. Go to the input editing screen and press the " Quick Edit " button of the old entry. Change the title, the " slug " and the date and time (to which you want, as long as it is not the same). That's right, take note of the previous exact values ​​(title, slug and exact date and time)
  2. Now do a " Quick Edit " of the new entry and put the same title, slug date and time of the old one.

 quick edit entry to move comments

It looks like a dumb but it works, even on WordPress.com and similar accommodations

NOTICE : This publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

How to highlight and bury comments • WordPress Help

 zombie coming out of the ground

Surely you have seen many comment systems, especially in digital newspapers, where users can highlight, or just the opposite, bury, the comments of other visitors .

The effect is that when a comment is highlighted it usually appears with a background color, or other aesthetic detail, that distinguishes it from the others and, On the contrary, when a comment's score is lowered, it reaches a point where it is almost invisible.

Well, it's quite easy to do. The first thing is to install the plugin Featured comments .

Once active it allows from the list of comments highlight or bury comments with the action links that it adds to each comment. but it can also be done from the live site, where it also adds the corresponding links for any visitor to highlight or bury a comment.

The only thing he does not do is distinguish them with any type of visual element. What you do have is two CSS classes that if you add them and configure them to your liking in the style sheet of the active theme, then you can highlight or bury the comments visually.

An example that propose in WPbeginner is to use these CSS classes:

Once the changes are saved, the featured comments will have a blue background and bold text, and buried ones will be more opaque, hindering their visibility.

NOTICE : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Highlight comments from registered users

Surely you've seen a lot of websites that encourage visitors to register and, in this way, obtain additional advantages, of which one of the most visual is highlighted Somewhat of your comments .

This is very easy to do in WordPress because you just have to create a CSS class that uses the WordPress class byuser which identifies registered users.

In the example code, the comments of registered users will be highlighted with a nice bluish background color.

Add comment rules in WordPress • WordPress Help

Today I was asking a colleague how to add a text in the WordPress comment area so that the rules for using them, his comment policy or " netiqueta "because he had done it but modifying files of the WordPress installation and, of course, with each update the happy text disappeared.

As you already know, the answer is quite simple, and there is two ways at least like everything in WordPress, namely …

None of these methods is affected by WordPress updates, of course. The first way to do it has the disadvantage that if you update the theme it will be lost, so either you use child themes or you remember to add the code again or you use the second method, the plugin method.

How to allow users to edit their comments • WordPress Help

I just saw a trick that allows us to make that users of our sites can edit their comments a function that is included in external systems like Disqus or Intense Debate.

To achieve this, we only need to install the plugin Simple Comment Editing . Once activated, it will allow the editing of comments after sending them.

By default, users can edit for 5 minutes after the comment is published. If you wish, you can change this period of time by adding the following code in the functions.php file of your theme or your functions plugin:

This way we can change the editing time, but for avoid mistakes, it is recommended not to put more than 30 minutes.

Google+ Comments on WordPress • WordPress Help

 google-plus-wordpress "src =" https://ayudawp.com/wp-content/uploads/2013/04/google- plus-wordpress.png "width =" 540 "height =" 261 "srcset =" https://ayudawp.com/wp-content/uploads/2013/04/google-plus-wordpress.png 600w, https: // ayudawp.com/wp-content/uploads/2013/04/google-plus-wordpress-500x241.png 500w "sizes =" (max-width: 540px) 100vw, 540px "/> </p>
<p> It's been a few days now possible to use the system of <a href= Google+ comments in Blogger and, waiting for Google to officially support to do the same in WordPress, they are leaving plugins that allow to integrate comments of the social network Google+ in WordPress .

Today these are available:

  • Google PlusOne comments : replaces the WordPress comment system with Google+, with no adjustments or having to touch anything. wonder in the design of the theme, you just have to install, activate and ready, more simply impossible.
     plusone google plus wordpress
  • Gplus Comments : something more complete than the previous one, since it offers three tabs when activating it. It also replaces the native WordPress comment system with Google+ but maintains the ability to comment using the original system. The tabs, then, what they allow is to use the comments of Google+ in one, those of WordPress in another and visualize the trackbacks in the last one. The truth is very good.
     gplus google plus wordpress
  • Google+ comments : Very simple in every way. This has a settings page where you can configure some aspects, where it will be displayed, how and some more things you can see in the capture.
  • Google plus comments by forum gt : A pity that does not work as well and the first as the rest, because in many cases where I have tried to add a function to the subject, so it will not be the first option that you recommend. [19659013] google plus wordpress forum gt ” src=”https://ayudawp.com/wp-content/uploads/2013/04/google-plus-wordpress-forum-gt-150×150.png” width=”150″ height=”150″/>

And now, waiting for more plugins, or some official, this is what there is at the moment.

And you'll ask are you interested in using this system instead of the native one? WordPress?

Well personally I think it's a bad choice in almost all the senses. The main thing is that in this way you bet exclusively for your visitors to comment using the social network of Google, not allowing these systems to use the Twitter or Facebook user, for example, to comment, which limits the actions . Now, if it is the main social network of your visitors then forget what I just said.

Another thing that I do not like is that comments do not stay in your WordPress if you deactivate the plugin, it is not integrate in the WordPress database so everything that is commented would be lost.

 comment by wordpress on google +

The good thing about this system is that if your positioning strategy is based primarily on Google+ which is not a bad idea but quite the opposite, then it's activate and ready, you will attract traffic to your site from Google+ as the comments publish with these systems are shown on your Google+ profile with a link to the entry of your site where you did it, and the same for each user who comments and …

have I already told you you have to work on SEO on Google+ if or if? well that.

AV ISO : this publication is from two years ago or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Discover comments that you have not answered

Look I'm tired of saying in conferences and courses that Web 2.0 is conversation and that WordPress is an important part of that conversation through blogs and websites, but nothing, there are still people who do not attend to that conversation … more or less how it happens to me, I never have time to answer all those who ask me things here

But nothing, that there are no excuses, because with the plugin Comments not replied to we are not (I included) to have excuses not to answer answers addressed to us.

What the plugin does is add one more column to the comment management page WordPress desktop in which a legend is shown that warns of comments to which you, as the content author, have not responded and thus be able to give full response to the readers of your publications.

The truth is that the idea is stupendous a, especially for sites with many comments let alone if they also have several authors, to quickly see at least the comments addressed to you . Come on, that's the idea.