[wordpress插件] Better Recent Comments最近更好的评论

wordpress 插件 文章 2020-03-04 02:50 613 0 全屏看文

AI助手支持GPT4.0

评分
96
描述

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].

只需添加简码 [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.

该插件还兼容WPML,这意味着注释将仅限于当前语言中的注释。

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.

默认的WordPress小部件将列出所有最近的注释,无论使用哪种语言,因此您最终可能会在英语网站的侧栏中看到德语帖子的注释。

Better Recent Comments solves this and makes sure the comments are for the current language only.

更好的最近评论可解决此问题,并确保评论仅适用于当前语言。

Translations currently provided in Spanish, French and Italian.

当前提供西班牙语,法语和意大利语翻译。

Options available with the shortcode:

带有短代码的选项:

    • format – the format of each recent comment.

    • format –每个最近评论的格式。

      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.

    • number –要显示的注释数。

      Default: 5 comments

    • 默认值:5条评论

    • date_format – the date and time format to use.

    • date_format –要使用的日期和时间格式。

      Like WordPress, this uses a PHP date format.

      与WordPress一样,它使用PHP日期格式。

      It defaults to ‘M j, H:i’.

      默认为“ M j,H:i”。

      See this cheat sheet for a full list of date and time options.

      有关日期和时间选项的完整列表,请参见此备忘单

      >

      >

    • avatar_size – the size of the avatar in pixels.

    • avatar_size –化身的大小(以像素为单位)。

      Only used if you have included {avatar} in your comment format (see ‘format’ option).

      仅在注释格式中包含{avatar}时使用(请参阅“格式”选项)。

      Default: 50

    • 默认值:50

    • post_status – the status of posts to retrieve comments for.

    • post_status –要为其检索评论的帖子的状态。

      Defaults to ‘publish’.

      默认为“发布”。

      Can be any valid status or a comma-separated list of statuses.

    • 可以是任何有效状态,也可以是逗号分隔的状态列表。

    • excerpts – set to ‘true’ to show an excerpt of the comment (limited to 20 words), or ‘false’ to show the full comment.

    • 摘录 –设置为“ true”以显示评论的摘录(限20个单词),或设置为“ false”以显示完整的评论。

      Default: true

    • 默认值:true

安装步骤

    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. 将插件文件上传到 / wp-content / plugins / better-recent-comments 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. To add the widget, go to Appearance -> Widgets, and find the ‘Better Recent Comments’ widget in the list, then add to any widget area.
    6. 要添加小部件,请转到外观->小部件,然后在列表中找到“更好的最近评论”小部件,然后将其添加到任何小部件区域。

    7. To add the shortcode, open up any page or post and add [better_recent_comments] where you want the comments to be displayed.
    8. 要添加简码,请打开任何页面或发布并在要显示评论的地方添加 [better_recent_comments]

下载地址
https://downloads.wordpress.org/plugin/better-recent-comments.1.1.1.zip
-EOF-

AI助手支持GPT4.0