外掛說明
MNP Newsroom allows you to display trending content on your site using a performance-focused approach.
Instead of querying the main database on every page load, it uses a dedicated lightweight table and the WordPress REST API to serve data asynchronously.
This plugin is designed to minimize server load on high-traffic websites.
Key Features
- Performance: Data is loaded via AJAX (REST API) to avoid caching conflicts.
- Smart Tracking: Visits are counted after a configurable delay (default 3 seconds) to improve accuracy.
- Bot Handling: Logic included to detect common bots and prevent them from inflating view counts.
- Time Ranges: Filter posts by Today (24h), Trending (48h), or Week (7 days).
- Customization: Includes a custom CSS editor and multiple layouts (Image Left, Right, or Text Only).
螢幕擷圖

General settings dashboard with global options and shortcode guide. 
Individual tab configuration (Today/Trending/Weekly) with custom shortcode help. 
Custom CSS editor with live preview support. 
Frontend widget display using the “Image Left” layout and ranking badges. 
Frontend widget display with view counter enabled and “Image Right” layout. 
Real-time integration example using Elementor Theme Builder.
安裝方式
- Upload the plugin folder to the
/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings > Mis Noticias Top to configure preferences.
- Use the shortcode
[mnpn_populares]in your content.
常見問題集
-
I updated from an older version and the widget disappeared.
-
We updated the shortcode prefix for security reasons. Please replace
[mis_populares]with[mnpn_populares]in your widgets or pages.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
8.0.1
- Fix: Implemented background update routine to ensure seamless database migration for existing users.
8.0
- Major Architecture Upgrade: Implemented a highly scalable dual-table system separating dynamic short-term logs from perpetual historical totals, explicitly designed for high-traffic environments.
- Feature: Added automatic data migration protocol to seamlessly transition legacy view counts into the new historical totals table upon activation.
- Security & Performance: Enforced strict backend validation (7 to 30 days) on automated log cleanup to permanently protect database memory and server load.
- UI: Updated post list admin columns to display perpetual historical views from the new lightweight structure.
7.3.6
- Fix: Corrected logic for rendering view counter badge in frontend based on admin settings.
7.3.5
- Feature: Added customizable cache refresh time (Transients) in global settings.
- UI: Restored tooltip help text for “Max Age” inputs in the admin panel.
- Fix: Removed REST API Nonce verification for public view counting to prevent caching conflicts.
- Fix: Resolved undefined link targeting issues in widget rendering.
7.3.4
- Fix: Resolved Plugin Check warnings regarding timezone functions and direct database queries in the admin panel.
7.3.3
- Upgrade: Added full compatibility support for WordPress 7.0.
- Feature: Added admin columns for today and total views in post list view.
7.3.2
- Minor fix: Adjusted late escaping and remaining constants prefix.
7.3.1
- Security Hardening: Implemented strict Late Escaping (esc_html, esc_attr) on all outputs.
- Refactor: Updated all function prefixes, variables, and database options to
mnpn_(4 chars) to prevent conflicts, per WP.org guidelines. - Shortcode: Changed main shortcode to
[mnpn_populares]. - Database: Updated log table name to comply with new naming conventions.
- Performance: Increased transient cache time to 15 minutes for better scalability.
7.3
- Security: Implemented Nonce verification for REST API endpoints.
- Refactor: Updated asset loading to use WordPress standards (wp_add_inline_style).
- Anti-Bot: Added “Silent Ignore” logic for bots to protect SEO and database integrity.
- Fix: Improved image retrieval logic (checks Thumbnail -> Medium -> Full).
- Feature: Added
offsetparameter to shortcodes. - UX: Added help text for “Max Age” setting (0 for unlimited).
7.2
- Refactored CSS loading to support Roboto Variable font.
- Fixed sidebar visibility issue in specific views.
- Optimized SQL queries for high-traffic sites.
1.0
- Initial release.
