Linux 软件免费装
Banner图

Better Recent Comments

开发者 andykeith
barn2media
amirition
kestrelwp
更新时间 2024年6月9日 23:49
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.4
版权: GPL-3.0
版权网址: 版权信息

标签

widget comments shortcode wpml avatar

下载

1.1.8 1.0.4 1.1.6 1.1.61 1.0.5 1.1.5 1.1 1.1.1 1.0.3 1.0.6 1.1.7 1.1.9 1.2.0 1.0.2 1.1.4 1.0 1.0.1 1.1.2 1.1.3

详情介绍:

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 in our Knowledge Base. Options available with the shortcode:

安装:

  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.

屏幕截图:

  • Adding the Better Recent Comments widget to the sidebar.

常见问题:

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

更新日志:

1.2.0 Release date 27 March 2024 1.1.9 Release date 14 November 2023 1.1.8 Release date 17 Aug 2023 1.1.7 Release date 30 March 2023 1.1.6 Release date 02 Jan 2023 1.1.5 Release date 17 June 2021 1.1.4 Release date 11 November 2020 1.1.3 Release date 12 August 2020 1.1.2 Release date 26 May 2020 1.1.1 Release date 18 November 2019 1.1 Release date 18 November 2019 1.0.6 Release date 20 November 2018 1.0.5 Release date 22 February 2018 1.0.4 Release date 14 March 2017 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.