How do I query PhpMyAdmin to delete WordPress comments where the commenter added their website?
That is, comments by people who used a url: Name, Email, Website.
I want to delete comments that have Website data.
How do I query PhpMyAdmin to delete WordPress comments where the commenter added their website?
That is, comments by people who used a url: Name, Email, Website.
I want to delete comments that have Website data.
You must be logged in to post a comment.
try the folloing query, but before put it in action, back up your database first.
The
wp_comments
table has the fieldscomment_author
,comment_author_email
,comment_author_url
, andcomment_content
, among others.Note that before performing any database manipulation you should back up your database, since these commands if used improperly will delete all comments from your blog.
If you want to remove any comment where the author placed a website in the comment_author_url field (which many do to identify their “home” blog,) you can do this:
If instead you want to remove a comment where the author placed a website in the content of the comment (as is common with comment spam) you can do
Edit your question to have more specifics about what you want to do if this does not answer your question.