• I have Askimet installed and it says it is working. It said it “caught” nine spam messages but all of those messages were published in the “recent comments” on the sidebar. I don’t know if they were also published elsewhere on the site because as soon as I saw them in the sidebar I immediately deleted them at the Dashboard.

    Is there anyway to prevent them from showing up in the sidebar?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to tell us how posts get in the sidebar. Are you using a plugin? Which one?

    Thread Starter shartlesville

    (@shartlesville)

    I am not using a plugin as far as I can see. I am using the following plugins:

    Akismet
    Autometa
    Bad Behaviour (added after this happened)
    Calendar
    Subscribe Me
    SimpleTags
    WordPress Database Backup

    The theme I am using is Devenir En Gris 1.5.20050308

    This is the code in the sidebar specifically for comments. There is also a separate section in the theme for comments, that code follows the sidebar code.

    Thank you for your assistance.
    ______________________________________________

    [ Moderated: Please do not post entire scripts or long code blocks in the forum. When you need to place your source online, use https://wordpress.pastebin.ca or other ‘pastebin’ site and link to it. ]

    I moderated your post because of the look at all that code! issue — but from the sidebar source you put up here is your culprit:

    if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments ORDER BY comment_date_gmt DESC LIMIT 5") ) :

    I would modify this line to:

    if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = 1 ORDER BY comment_date_gmt DESC LIMIT 5") ) :

    Thread Starter shartlesville

    (@shartlesville)

    I’ll try it. Thank you! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Askimet says caught but they were published in sidebar’ is closed to new replies.