Total Views

描述

Total Views is a lightweight WordPress plugin that allows you to count total page views and display them anywhere using the [total_views] shortcode.

Features include:

  • Counts total page views for your website.
  • NEW: Tracks dedicated views for individual posts, pages, and products.
  • NEW: Automatically display single item views at the beginning or end of content, or use the [total_views_single] shortcode.
  • NEW: Automatically place global views before the footer or sidebar without touching code.
  • NEW: Toggle a sortable “Views” column in your WordPress admin list for Posts, Pages, and Products.
  • NEW: Live tab-specific previews in settings to visualize custom label and styling changes instantly.
  • Display total views with a customizable label.
  • Style options: bold, italic, underline, color.
  • Editable total page views number in the settings to manually adjust.
  • Front-end shortcode [total_views] displays the global counter exactly as in the admin preview.
  • Unified sleek bar-chart icon for all frontend displays, perfectly matching WordPress native admin styling.
  • CSS classes: total-views-label and total-views-count for advanced styling.
  • Optional “Check tutorial” button linking to a video guide.
  • Responsive, tabbed admin settings page.

Ideal for bloggers, developers, and website owners who want quick traffic insight with minimal setup.

Keywords

page views, visitor counter, traffic analytics, shortcode counter, total views plugin, front-end page views, visitor statistics, WP plugin traffic, lightweight analytics

屏幕截图

安装

  1. Upload the total-views folder to /wp-content/plugins/.
  2. Activate the plugin via the Plugins menu in WordPress.
  3. Navigate to Settings Total Views to configure label, color, styles, and placement for single item views.
  4. Use the shortcode [total_views] anywhere to display global total views, or [total_views_single] for individual post/page/product views.
  5. To reset the counter, set Total Page Views to 0 and save changes.

常见问题

Does Total Views count unique visitors or total page views?

It counts total page views, including repeat visits from the same user. For unique visitor tracking, use Google Analytics.

Can I track views for specific posts or pages?

Yes! The plugin now automatically tracks dedicated views for individual posts, pages, and products. You can choose to automatically display these views at the beginning or end of the content from the settings, or place them manually using the [total_views_single] shortcode.

Can I set total page views manually?

Yes, you can update the Total Page Views value in the settings panel and save changes.

Can I customize the counter style?

Yes! Use the classes total-views-label and total-views-count in your theme CSS. Add !important if needed to override plugin styles.

Does the color picker work on mobile devices?

Yes, modern Android and iOS browsers support <input type="color"> natively.

Is this plugin SEO-friendly?

Yes. The output is semantic HTML and does not negatively affect SEO.

Can I use the shortcode in widgets or footer?

Yes, [total_views] works in posts, pages, widgets, footer, and sidebar areas.

Does the plugin work with any WordPress theme?

Yes, it is lightweight and compatible with all modern WordPress themes.

评价

此插件暂无评价。

贡献者及开发者

「Total Views」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Total Views」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.0.7

  • Added automatic global placement options (Before Footer, Sidebar) using robust PHP output buffering.
  • Added toggleable “Views” column to the WordPress admin list for Posts, Pages, and Products.
  • Made the new admin “Views” column fully sortable by view count.
  • Unified all frontend icons to accurately match the native WordPress dashicons-chart-bar ascending bar-chart design.
  • Upgraded admin settings to include individual live previews for Entire Website, Post, Page, and Product tabs.
  • Added a convenient “Settings” quick-link on the WordPress Plugins page.

2.0.0

  • Completely overhauled admin settings to use a tabbed interface.
  • Added dedicated view counting for single posts, pages, and products.
  • Added [total_views_single] shortcode to display single item views.
  • Added settings dropdown for automatic view placement (beginning/end of content) for posts/pages/products.

1.0

  • Initial release.
  • Counts total page views.
  • Shortcode [total_views] added.
  • Editable total page views in admin settings.
  • Customizable label, color, and text styles.
  • Admin preview using shortcode output.
  • Responsive admin layout.
  • “Check tutorial” button added.