Title: Recent Comments
Author: Automattic
Published: <strong>13 студзеня, 2005</strong>
Last modified: 10 лютага, 2021

---

Пошук плагінаў

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://s.w.org/plugins/geopattern-icon/recent-comments.svg)

# Recent Comments

 Аўтар: [Automattic](https://profiles.wordpress.org/automattic/)

[Спампаваць](https://downloads.wordpress.org/plugin/recent-comments.zip)

 * [Падрабязнасці](https://bel.wordpress.org/plugins/recent-comments/#description)
 * [Водгукі](https://bel.wordpress.org/plugins/recent-comments/#reviews)
 *  [Ўсталёўка](https://bel.wordpress.org/plugins/recent-comments/#installation)
 * [Распрацоўка](https://bel.wordpress.org/plugins/recent-comments/#developers)

 [Падтрымка](https://wordpress.org/support/plugin/recent-comments/)

## Апісанне

Creates functions to assist in displaying a list of the most recent comments. Provides
more configurability than the widget that comes with WordPress.

### Configuration

You may pass parameters when calling the function to configure some of the options.
Parameters are accepted only in the [query-string-style](https://codex.wordpress.org/How_to_Pass_Tag_Parameters#Tags_with_query-string-style_parameters).

#### list_most_recent_comments()

In addition to the parameters that [get_comments()](https://codex.wordpress.org/Function_Reference/get_comments)
and `get_most_recent_comments()` (see below) accept, this function accepts the following
parameters:

 * `excerpt_words` — The number of words from the comment to display
 * `excerpt_chars` — Or alternately the number of characters from the comment to
   display
 * `comment_format` — Allows you to pick from two predefined display formats:

 1. [Comment Author](https://bel.wordpress.org/plugins/recent-comments/?output_format=md#commentlink)
    on [Post Title](https://bel.wordpress.org/plugins/recent-comments/?output_format=md#postlink)
 2. **Comment Author:** [This is the comment excerpt](https://bel.wordpress.org/plugins/recent-comments/?output_format=md#commentlink)

Example:

    ```
    <?php list_most_recent_comments( 'excerpt_words=5' ); ?>
    ```

#### get_most_recent_comments()

A more powerful version of [get_comments()](https://codex.wordpress.org/Function_Reference/get_comments).
It accepts the same parameters as well as the following ones:

 * `passworded_posts` — Boolean to control showing comments on passworded posts 
   or not. Defaults to `false`.
 * `showpings` — Boolean to control showing pings and trackbacks or not. Defaults
   to `false`.
 * `post_types` — Array of post types to include comments from. Defaults to posts
   and pages: `array( 'post', 'page' )`
 * `post_statuses` — Array of post statuses to include comments from. Defaults to
   published posts and static pages: `array( 'publish', 'static' )`

Arguments should likely be passed as an array instead of a string.

Example:

    ```
    <?php

    list_most_recent_comments( array(
        'showpings' => true,
        'post_types' => array( 'post', 'page', 'foobar' ),
    ) );

    ?>
    ```

## Ўсталёўка

 1. Visit Plugins -> Add New in your WordPress administration area and search for the
    name of this plugin.
 2. Activate the plugin.
 3. Add `<?php list_most_recent_comments(); ?>` to your theme.

## Водгукі

На гэты плагін няма водгукаў.

## Удзельнікі і распрацоўшчыкі

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

Удзельнікі

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Nick Momrik ](https://profiles.wordpress.org/nickmomrik/)
 *   [ Alex Mills ](https://profiles.wordpress.org/viper007bond/)

[Перакласці “Recent Comments” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/recent-comments)

### Зацікаўлены ў распрацоўцы?

[Праглядзіце код](https://plugins.trac.wordpress.org/browser/recent-comments/), 
праверце [SVN рэпазітарый](https://plugins.svn.wordpress.org/recent-comments/), 
або падпішыцеся на [журнал распрацоўкі](https://plugins.trac.wordpress.org/log/recent-comments/)
па [RSS](https://plugins.trac.wordpress.org/log/recent-comments/?limit=100&mode=stop_on_copy&format=rss).

## Журнал змяненняў

#### Version 2.0.0

 * Recoded from scratch to make use of `get_comments()` instead of a direct database
   query.
 * Additional parameters added.

#### Version 1.0.0

 * Original release

## Мета

 *  Версія **2.1**
 *  Апошняе абнаўленне **5 гадоў таму**
 *  Актыўных установак **200+**
 *  Мова
 * [English (US)](https://wordpress.org/plugins/recent-comments/)
 * Тэгі
 * [comments](https://bel.wordpress.org/plugins/tags/comments/)[list](https://bel.wordpress.org/plugins/tags/list/)
   [recent](https://bel.wordpress.org/plugins/tags/recent/)
 *  [Пашыраны прагляд](https://bel.wordpress.org/plugins/recent-comments/advanced/)

## Ацэнкі

Пакуль яшчэ няма водгукаў.

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

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

## Удзельнікі

 *   [ Automattic ](https://profiles.wordpress.org/automattic/)
 *   [ Nick Momrik ](https://profiles.wordpress.org/nickmomrik/)
 *   [ Alex Mills ](https://profiles.wordpress.org/viper007bond/)

## Падтрымка

Ёсць што сказаць? Патрэбна дапамога?

 [Перайсці да форуму падтрымкі](https://wordpress.org/support/plugin/recent-comments/)