Support » Plugin: Post-Specific Comments Widget (PSCW) » Exclude comments by blog authors

  • Hi,
    I like your plugin, just one thing missing IMO : an option to filter comments for the blog authors.
    I was previously using “Get recent comments” plugin, which does not work anymore with WP 5.7. With that plugin, the option was described as : “Exclude comments by blog authors (your own comments)”.
    For example, I own my blog and I don’t that my replies to external comments to my posts appear in the widget. Just the comments from people reading the post. That’s the idea.
    Thank you for that plugin.

    • This topic was modified 8 months, 1 week ago by pledisque.
Viewing 1 replies (of 1 total)
  • Plugin Author Little Package


    Actually, I have a workaround, but I am not the author of it, as I have no dev skills. On the french WP forum (here), PhiLyon helped me and found that function to add in the function.php of a child theme :

    function ra_recent_comments_less_author( $array ) {
    global $post;
    $array[‘user_id’] = !$post->post_author;
    return $array;
    add_action( ‘widget_comments_args’, ‘ra_recent_comments_less_author’ );


    With that function AND your widget, I have exactly what I was looking for ! 🙂
    Hope that helps.`

    Going to quote you here instead of in the reviews so that if anyone is looking for this they can find it. Looks like you built a simple and effective workaround! Thank you for sharing it.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude comments by blog authors’ is closed to new replies.