Key Features
- Simple shortcode
[init_recent_comments]— use anywhere - Shortcode
[init_recent_reviews]to display recent reviews - User-specific shortcodes:
[init_user_recent_comments]— recent comments by a specific user (supportsuser_id,user_login,user_email)[init_user_recent_reviews]— recent reviews by a specific user
- Separated templates — override from theme (like WooCommerce)
- Minimal, clean CSS — can be disabled to use theme styling
- No widget, no jQuery, no frontend bloat
- Supports caching (TTL) and query filters — developer friendly
Display comments via shortcode
Use the shortcode anywhere — post, page, block editor, or widget:
[init_recent_comments number="5" maxheight="300px"]
Supported attributes:
number— number of comments to show (default: 5)maxheight— enables max height + scrollbarpaged— enable pagination (example:paged="2")theme—lightordark
Display recent reviews
[init_recent_reviews number="5"]
Display comments / reviews of a specific user
Display recent comments by a user (you can use ID / login / email):
[init_user_recent_comments user_id="123"]
Display recent reviews by a user:
[init_user_recent_reviews user_id="123"]
Additional user-specific parameters:
user_id/user_login/user_email(for user comments shortcode)user_id(for user reviews shortcode)
Easy template override
Fully customize the output by adding templates to your theme:
your-theme/init-recent-comments/
├── wrapper.php
├── review-wrapper.php
├── comment-item.php
└── review-item.php
No hooks, no complicated actions — just copy and edit.
Quick Installation
- Upload the plugin to
/wp-content/plugins/init-recent-comments/ - Activate it from the Plugins menu in WordPress
- Add the shortcode where you want to display comments or reviews
- Optional: go to Settings → Init Recent Comments to disable default CSS
Compatibility & Performance
- Compatible with WordPress 5.5+
- Tested on WordPress 6.9
- Supports PHP 7.4+
- Works with any theme
- No jQuery — powered 100% by core WordPress API
- Includes caching layer + TTL filter for performance
Developer Filters
Built-in developer filters (WordPress standard):
init_recent_comments_disable_css— enable/disable CSSinit_plugin_suite_recent_comments_query_args— modifyget_comments()query argsinit_plugin_suite_recent_comments_ttl— cache TTL for recent commentsinit_plugin_suite_recent_reviews_ttl— cache TTL for recent reviewsinit_plugin_suite_user_recent_comments_ttl— TTL for user commentsinit_plugin_suite_user_recent_reviews_ttl— TTL for user reviews
Get Started
Want a clean, modern, and fully customizable way to show recent activity?
Init Recent Comments is the perfect drop-in solution — lightweight, flexible, and theme-friendly.
Admin
17/06/2025 lúc 23:37
Demo available in the Recent Comments section on the sidebar of this page! 👍