Title: Recent Comments
Author: Automattic
Published: <strong>13 janvāris, 2005</strong>
Last modified: 10 februāris, 2021

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

![](https://s.w.org/plugins/geopattern-icon/recent-comments.svg)

# Recent Comments

 Autors [Automattic](https://profiles.wordpress.org/automattic/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/recent-comments.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/recent-comments/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/recent-comments/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/recent-comments/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/recent-comments/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/recent-comments/)

## Apraksts

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://lv.wordpress.org/plugins/recent-comments/?output_format=md#commentlink)
    on [Post Title](https://lv.wordpress.org/plugins/recent-comments/?output_format=md#postlink)
 2. **Comment Author:** [This is the comment excerpt](https://lv.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' ),
    ) );

    ?>
    ```

## Uzstādīšana

 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.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Recent Comments” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi
cilvēki.

Līdzdalībnieki

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

[Tulkot “Recent Comments&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/recent-comments)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/recent-comments/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/recent-comments/)vai
abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/recent-comments/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/recent-comments/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 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

## Meta

 *  Versija **2.1**
 *  Pēdējo reizi atjaunots: **pirms 6 gadiem**
 *  Aktīvās instalācijas: **100+**
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/recent-comments/)
 * Birkas:
 * [comments](https://lv.wordpress.org/plugins/tags/comments/)[list](https://lv.wordpress.org/plugins/tags/list/)
   [recent](https://lv.wordpress.org/plugins/tags/recent/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/recent-comments/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

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

[Skatīt visasatsauksmes](https://wordpress.org/support/plugin/recent-comments/reviews/)

## Līdzdalībnieki

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

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/recent-comments/)