外掛說明
Simple Post View Count is a lightweight plugin that allows you to track and display the number of views for your WordPress posts. Key features include:
- View Tracking: Automatically tracks post views using AJAX or a fallback method, with IP-based deduplication.
- Shortcode Support: Use
[simppovi-single-post-view]to display view counts anywhere on your site. - Customizable Display: Customize text and colors for view counts via the settings page.
- Admin Column: Adds a sortable “Views” column to the post list in the admin area.
- View Logs: View detailed logs of post views and export them to CSV.
- Caching Compatibility: Works with caching plugins when configured correctly.
Perfect for bloggers, content creators, and site owners who want to monitor post popularity without heavy analytics plugins.
License
This plugin is licensed under the GPLv2 or later. See the included license.txt file for details.
螢幕擷圖
安裝方式
- Upload the
simple-post-view-countfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure settings under Settings > Simple Post View in the WordPress admin.
- Use the
[simppovi-single-post-view]shortcode to display view counts in your posts or pages. - For caching plugins, ensure the AJAX endpoint is excluded from caching.
常見問題集
-
How do I display the view count?
-
Use the
[simppovi-single-post-view]shortcode in your post or page content. For a specific post, use[simppovi-single-post-view id="123"]. Customize with attributes likeshow_total="true"orshow_24_hour="false". -
Why are view counts not updating?
-
Ensure your caching plugin excludes the AJAX endpoint. Check the view logs under Settings > Simple Post View for details.
-
Can I reset view counts?
-
Yes, use the “Reset Post View Data” button in the settings page. This action is irreversible.
-
Does it work with multisite?
-
Yes, the plugin supports WordPress multisite installations.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0.1
- Updated prefixes for better uniqueness and compatibility
- Improved security with better nonce handling
- Fixed AJAX endpoint references
1.0.0
- Added database schema upgrade routine.
- Improved performance with view_date index.
- Added date range filter for view logs.
- Enhanced security with CSV sanitization and input validation.
- Updated frontend AJAX with retry mechanism.
- Initial release.





