How to let wp-recentcomments not show administrator comments

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The MG12 wp-recentcomments plugin was installed to enhance the display of the latest comments, however, with the constant problem of not shielding the Administrator's reply comments, the issue was also seen in the posting page of the plugin, but no solution was given. The producer Mg12 just said that the judgment comment "is not via email, but is logged through the database." If it's the administrator, it's the admin. Unfortunately, I installed the blog after the most original administrator account to delete directly, changed an administrator user, and then can not be normal.

The replacement of the server and domain name, the previous database migrated over, so decided to pound the database things are modified, by the way also to solve the problem, after a toss finally found a solution, and use up to now have not found any problems.

The following two SQL statements can be easily handled under phpMyAdmin: (Remember to back up your database before you operate)

UPDATE wp_users SET id = replace (ID, ' * ', ' binaphthyl '); /* Modify User id*/

UPDATE wp_usermeta SET user_id = replace (user_id, ' * ', ' binaphthyl '); /* Modify Administrator Association Information * *

UPDATE wp_posts SET post_author = replace (post_author, ' * ', ' binaphthyl '); /* Fix ID replacement after the background display user Article 0 question * *

Note: Please change the above "*" number to the ID of the administrator in your current wp_users. The above statement means:

UPDATE table name SET field = replace (field, ' Replace content ', ' replacement value ');

Of course, you can also edit directly in the phpMyAdmin. After the above changes can let your wp-recentcomments not show administrator comments. Results can be seen in the latest comments on the site.

Welcome to http://www.yetlive.com/to discuss together!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.