Title: Better Recent Comments
Author: Kestrel
Published: <strong>Февраль 2, 2016-ж.</strong>
Last modified: Март 28, 2024-ж.

---

Плагиндерди издөө

![](https://ps.w.org/better-recent-comments/assets/banner-772x250.png?rev=3100094)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/better-recent-comments/assets/icon.svg?rev=3100094)

# Better Recent Comments

 Автору [Kestrel](https://profiles.wordpress.org/kestrelwp/)

[Жүктөө](https://downloads.wordpress.org/plugin/better-recent-comments.1.2.0.zip)

 * [Кенен маалымат](https://kir.wordpress.org/plugins/better-recent-comments/#description)
 * [Сын-пикирлер](https://kir.wordpress.org/plugins/better-recent-comments/#reviews)
 *  [Орнотуу](https://kir.wordpress.org/plugins/better-recent-comments/#installation)
 * [Development](https://kir.wordpress.org/plugins/better-recent-comments/#developers)

 [Колдоо](https://wordpress.org/support/plugin/better-recent-comments/)

## Сүрөттөө

The default Recent Comments widget is somewhat limited. Better Recent Comments improves
on this by providing a more flexible widget with options to show the user’s actual
comment, as well as show avatars and the ability to show or hide the comment date.

As well as the widget, there’s a handy shortcode you can use to display your recent
comments. This is useful if you need to display comments somewhere other than your
sidebar or footer, such as on your homepage. Simply add the shortcode `[better_recent_comments]`.

That’s not all! The plugin is also WPML compatible, which means that the comments
will be restricted to those in the current language. The default WordPress widget
will list all recent comments, regardless of language, so you might end up with 
comments for German-language posts in the sidebar of your English site. Better Recent
Comments solves this and makes sure the comments are for the current language only.

Translations currently provided in Spanish, French and Italian.

View the full [plugin documentation](https://barn2.com/kb-categories/better-recent-comments-kb/)
in our Knowledge Base.

Options available with the shortcode:

 * `format` – the format of each recent comment. This option uses ‘placeholders’
   which are substituted with the actual data when the comments are displayed. See
   the FAQs for details.
 * `number` – the number of comments to display. Default: 5 comments
 * `date_format` – the date and time format to use. Like WordPress, this uses a 
   PHP date format. It defaults to ‘M j, H:i’. See [this cheat sheet](https://barn2.com/PHP-Date-Format.pdf)
   for a full list of date and time options.
 * `avatar_size` – the size of the avatar in pixels. Only used if you have included{
   avatar} in your comment format (see ‘format’ option). Default: 50
 * `post_status` – the status of posts to retrieve comments for. Defaults to ‘publish’.
   Can be a single status or a comma-separated list, or ‘any’ to show comments for
   all post statuses.
 * `post_type` – the post type to retrieve comments for. Accepts a single or multiple
   post types (e.g. ‘post’ or ‘post, dlp_document’) or ‘any’ to show comments for
   all post types. Default: ‘any’
 * `excerpts` – set to ‘true’ to show an excerpt of the comment (limited to 20 words),
   or ‘false’ to show the full comment. Default: true
 * `replies` – set to ‘true’ to also show responses to comments, or ‘false’ to only
   see the top level comments. Default: true

## Скриншоттор

 * [[
 * This page shows comments added to a page using the shortcode.
 * [[
 * Adding the Better Recent Comments widget to the sidebar.

## Орнотуу

 1. Upload the plugin files to the `/wp-content/plugins/better-recent-comments` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. To add the widget, go to Appearance -> Widgets, and find the ‘Better Recent Comments’
    widget in the list, then add to any widget area.
 4. To add the shortcode, open up any page or post and add `[better_recent_comments]`
    where you want the comments to be displayed.

## FAQ.KG

### How do I add the widget?

To add the widget, go to Appearance -> Widgets, and find the ‘Better Recent Comments’
widget in the list, then drag to any widget area. You can then set the title for
the widget, the number of comments to show, and choose to show or hide the comment
avatars, dates, comment text and post link.

If you would prefer to use the shortcode to set more specific options, add a Text
widget to yout sidebar instead, and then add the `[better_recent_comments]` shortcode
to your widget.

### How do I use the shortcode?

Add `[better_recent_comments]` to any post or page.

### What are the shortcode options?

See the main [plugin description](https://wordpress.org/plugins/better-recent-comments/)
for the list of shortcode options.

### How do I control the format of the comments using the `format` shortcode option?

The `format` option allows you to choose the exact format you want for your recent
comments. This option uses placeholders which are substituted with the actual data
when the comments are displayed.

The available placeholders are: `{avatar}`, `{author}`, `{post}`, `{comment}` and`{
date}`.

 * `{avatar}` is the comment author’s Gravatar image.
 * `{author}` is the comment author’s name.
 * `{post}` is the title of the post, and contains a link to the author’s comment
   below the post.
 * `{comment}` is the actual comment text.
 * `{date}` is the comment date (see the `date_format` option in the main description
   to set the date format)

Defaults to: `{author} on {post}: "{comment}" {date}`

### How do I set the length of the comments?

There is no built-in option for this, but you can set the length of the comments
by adding the following code to your site.

In the code below change ’10’ to the number of words you would like. If you are 
using the `[better_recent_comments]` shortcode, make sure to add the `excerpts="
true"` option.

    ```
    add_filter( 'comment_excerpt_length', function( $number_of_words ) {
        return 10;
    } );
    ```

### Can I see a demo of the plugin?

Yes, please visit http://barn2.com/better-recent-comments-demo/ to see Better Recent
Comments in action.

### Will it work with my theme?

The plugin has been designed to work with different themes and will take the styling
from your theme for the fonts etc. where possible.

### How do I display comments for media files/attachments?

Use the shortcode as follows:
 [better_recent_comments post_type=”attachment” post_status
=”any”]

### How do I use the plugin with WPML?

If you have a multilingual site using WPML then the plugin will display comments
for the correct language automatically.

### Can you customize the plugin for me?

Unfortunately not. We’ve developed this free plugin to be flexible and easy to configure
so that it will be suitable for as many different websites as possible.

### Where can I find the documentation?

Please visit our [Knowledge Base](https://barn2.com/kb-categories/better-recent-comments-kb/).

## Сын-пикирлер

![](https://secure.gravatar.com/avatar/7708b6ab1c9e6f3bf683c3f48c68623feba8b9c5be09727f7a551ab073630d7f?
s=60&d=retro&r=g)

### 󠀁[Good but problematic ( no way to set excerpt length per widget/shortcode )](https://wordpress.org/support/topic/good-but-problematic-no-way-to-set-excerpt-length-per-widget-shortcode/)󠁿

 [tnn](https://profiles.wordpress.org/noelforge/) Январь 11, 2022-ж. 3 replies

The author gave a solution ( unrelated to the plugin ) to modify the comment excerpt
length (*) ALL ACROSS YOUR SITE 😂 , which is not really a solution, is extremely
invasive and certainly not wanted by anyone looking to build a coherent user experience
on their site. Users should be able to set different excerpt lengths for each shortcode,
that’s the bare minimum for any comment plugin. ( e.g. 10 words on “homepage” excerpts,
20 words on “profile page”, no limit on “all recent comments” page ). Something 
like that. A similar plugin : WordPress comment plus does that, but your plugin 
is better in terms of styling, so I’ll just have to deal with that shitty excerpt
handicap for the time being. ///////////////////////////// the invasive “solution”///
add_filter( ‘comment_excerpt_length’, function( $number_of_words ) { return 50; });

![](https://secure.gravatar.com/avatar/856122b624ab24a188d1df67f463cc49ea3ff8327a87333311a786279a2a7b14?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-11351/)󠁿

 [bibblybob](https://profiles.wordpress.org/bibblybob/) Ноябрь 23, 2021-ж. 1 reply

Looks perfect! Much better than the in-built WordPress widget. Well done!

![](https://secure.gravatar.com/avatar/46e05ea435df91f2cc4170fc4ff8bd22f6377e0845ca7225a3ad20ab9a6094e0?
s=60&d=retro&r=g)

### 󠀁[Great – Better than Writing Your Own](https://wordpress.org/support/topic/great-better-than-writing-your-own/)󠁿

 [Rick Hellewell](https://profiles.wordpress.org/rhellewellgmailcom/) Октябрь 22,
2021-ж. 1 reply

Although there are many ways to put a ‘recent column’ widget in your sidebar, this
is the best. Easy to customize (read the docs for shortcode parameters), and insert
a block that contains the shortcode with all of your desired options. Add a ‘<h3
class=widget-title>Recent Comments</h3>’ just above the shortcode to put a heading.
Great stuff !

![](https://secure.gravatar.com/avatar/01d00a2bf81d8087f1335e0892773f0a3bd70362d854761871897707ef30805f?
s=60&d=retro&r=g)

### 󠀁[Just what I needed.](https://wordpress.org/support/topic/just-what-i-needed-1129/)󠁿

 [scopie](https://profiles.wordpress.org/scopieg/) Август 17, 2021-ж. 1 reply

Beautiful and simple.

![](https://secure.gravatar.com/avatar/9f8f099065ceffe62bc40ed22f624d99fcc084ef2b9dc9b656923fe2f0899a11?
s=60&d=retro&r=g)

### 󠀁[Very happy with it](https://wordpress.org/support/topic/very-happy-with-it-21/)󠁿

 [Topher](https://profiles.wordpress.org/topher1kenobe/) Июль 17, 2021-ж. 1 reply

I used the default Recent Comments plugin and was dismayed by how ugly and uninformative
it was. It doesn’t show the comments! Better Recent Comments shows a nice avatar
AND the actual comment. Perfect.

![](https://secure.gravatar.com/avatar/cbc49b0642fc31e156cdb5a564d8b9c84f1e654c670d435d77d23502e7d67a78?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-29751/)󠁿

 [litbes](https://profiles.wordpress.org/litbes/) Февраль 14, 2021-ж. 1 reply

I have been using the plugin for more than two years, installed it on two sites –
it works perfectly! A huge number of output options, in addition, there is a widget
and a shortcode. Thank you very much to the developer for his great work!

 [ Read all 17 reviews ](https://wordpress.org/support/plugin/better-recent-comments/reviews/)

## Contributors & Developers

“Better Recent Comments” is open source software. The following people have contributed
to this plugin.

Мүчөлөрү

 *   [ Kestrel ](https://profiles.wordpress.org/kestrelwp/)

“Better Recent Comments” has been translated into 12 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/better-recent-comments/contributors)
for their contributions.

[Translate “Better Recent Comments” into your language.](https://translate.wordpress.org/projects/wp-plugins/better-recent-comments)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/better-recent-comments/),
check out the [SVN repository](https://plugins.svn.wordpress.org/better-recent-comments/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/better-recent-comments/)
by [RSS](https://plugins.trac.wordpress.org/log/better-recent-comments/?limit=100&mode=stop_on_copy&format=rss).

## Өзгөртүүлөр

#### 1.2.0

Release date 27 March 2024
 * Fix notices in PHP 8.2 * Misc: Update author to Kestrel

#### 1.1.9

Release date 14 November 2023

 * Dev: Added the barn2 libraries
 * Dev: Tested up to WordPress 6.4

#### 1.1.8

Release date 17 Aug 2023

 * Fixed warnings in PHP 8.1
 * Support multi post types

#### 1.1.7

Release date 30 March 2023

 * Added support for the `replies` parameter in the shortcode

#### 1.1.6

Release date 02 Jan 2023

 * Tested up to WordPress 6.1.1

#### 1.1.5

Release date 17 June 2021

 * Fix the WPML integration to support the ‘post_type’ option.
 * Tested up to WordPress 5.7.2.

#### 1.1.4

Release date 11 November 2020

 * Added ‘post_type’ shortcode option to allow comments to be shown for specific
   post types.

#### 1.1.3

Release date 12 August 2020

 * Tested up to WordPress 5.5.
 * Added Composer support
 * Minor code improvements.

#### 1.1.2

Release date 26 May 2020

 * Tested up to WordPress 5.4.1.
 * Added filter to disable inline CSS for avatars.

#### 1.1.1

Release date 18 November 2019

 * Add backwards compatibility for 1.0.6 functions removed in 1.1.

#### 1.1

Release date 18 November 2019

 * Update plugin architecture and Barn2 library code.
 * Tested up to WordPress 5.3.

#### 1.0.6

Release date 20 November 2018

 * Added extra hooks for easier customization.
 * Tested with latest version of WordPress.

#### 1.0.5

Release date 22 February 2018

 * Tested up to WP 4.9.2
 * Added various filters for easier developer customisation.
 * Added French translation (credit: Whiler).

#### 1.0.4

Release date 14 March 2017

 * Added Italian translation (credit: Libri Ehret).
 * Tested with WordPress 4.7.
 * Other minor code improvements.

#### 1.0.3

Added ‘excerpts’ shortcode option to allow user to choose whether the full comment
or an excerpt is displayed. Defaults to true (i.e. show excerpt)

#### 1.0.2

Added ‘post_status’ shortcode option.

#### 1.0.1

Improve handling for themes which use custom bullets in sidebar widgets.

#### 1.0

Initial release.

## Мета

 *  Нуска **1.2.0**
 *  Акыркы жаңыртуу **2 жыл мурун**
 *  Активдүү орнотуулар **2,000+**
 *  WordPress нускасы ** 6.0 же андан жогору **
 *  Tested up to **6.5.8**
 *  PHP нускасы ** 7.4 же андан жогору **
 *  Тилдер
 * [Bengali (Bangladesh)](https://bn.wordpress.org/plugins/better-recent-comments/),
   [Czech](https://cs.wordpress.org/plugins/better-recent-comments/), [English (US)](https://wordpress.org/plugins/better-recent-comments/),
   [Esperanto](https://eo.wordpress.org/plugins/better-recent-comments/), [Finnish](https://fi.wordpress.org/plugins/better-recent-comments/),
   [Greek](https://el.wordpress.org/plugins/better-recent-comments/), [Persian](https://fa.wordpress.org/plugins/better-recent-comments/),
   [Russian](https://ru.wordpress.org/plugins/better-recent-comments/), [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/better-recent-comments/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/better-recent-comments/), 
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/better-recent-comments/),
   [Swedish](https://sv.wordpress.org/plugins/better-recent-comments/) жана [Turkish](https://tr.wordpress.org/plugins/better-recent-comments/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/better-recent-comments)
 * Тег:
 * [avatar](https://kir.wordpress.org/plugins/tags/avatar/)[comments](https://kir.wordpress.org/plugins/tags/comments/)
   [shortcode](https://kir.wordpress.org/plugins/tags/shortcode/)[widget](https://kir.wordpress.org/plugins/tags/widget/)
   [wpml](https://kir.wordpress.org/plugins/tags/wpml/)
 *  [Advanced View](https://kir.wordpress.org/plugins/better-recent-comments/advanced/)

## Рейтинг

 4.6 out of 5 stars.

 *  [  14 5-star reviews     ](https://wordpress.org/support/plugin/better-recent-comments/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/better-recent-comments/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/better-recent-comments/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/better-recent-comments/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/better-recent-comments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/better-recent-comments/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/better-recent-comments/reviews/)

## Мүчөлөрү

 *   [ Kestrel ](https://profiles.wordpress.org/kestrelwp/)

## Колдоо

Комментарийлер барбы? Жардам керекпи?

 [Колдоо форумун көрүү](https://wordpress.org/support/plugin/better-recent-comments/)

## Кайрымдуулук

Would you like to support the advancement of this plugin?

 [ Кайрымдуулук кылуу ](https://kestrelwp.com)