Simple Post View Count

外掛說明

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.

螢幕擷圖

  • Settings page for customizing view count text and colors.
  • Post view column in the admin post list.
  • View logs table with CSV export option.
  • Shortcode output on a post page.

安裝方式

  1. Upload the simple-post-view-count folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Configure settings under Settings > Simple Post View in the WordPress admin.
  4. Use the [simppovi-single-post-view] shortcode to display view counts in your posts or pages.
  5. 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 like show_total="true" or show_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.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Simple Post View Count〉的開發相關工作。

參與者

將〈Simple Post View Count〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.