We'll create fresh WordPress site with Better Recent Comments installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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:
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 commentsdate_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 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: 50post_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: truereplies
– set to ‘true’ to also show responses to comments, or ‘false’ to only see the top level comments. Default: true