Linux 软件免费装
Banner图

Post Views by DevDesignDazzle

开发者 devdesigndazzle
更新时间 2025年3月11日 12:04
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

statistics analytics post views page views view counter

下载

1.0.0

详情介绍:

DevDesignDazzle - Post Views is a lightweight yet powerful solution for tracking and displaying post views on your WordPress site. Key Features For more information about "DevDesignDazzle-Post Views", visit DevDesignDazzle.com. Usage Perfect For

安装:

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Access 'Post Views' in your admin menu for statistics
  4. Use shortcodes or PHP functions to display views

屏幕截图:

  • Settings Page
  • Top Posts Grid Display

升级注意事项:

1.0.0 Initial release with comprehensive view tracking and display features.

常见问题:

How are views counted?

Views are tracked with duplicate prevention using both sessions and cookies (6-hour window). Admin views and bot traffic are automatically filtered out.

How can I display views?

Multiple options available:

  1. Shortcode in post content: [dddPostViews] or [dddPostViews timeframe="monthly"]
  2. PHP function in theme files: <?php echo dddPostViews_display_post_views(); ?>
  3. Top posts list with customizable excerpt: [dddPostViews_top_posts number="5" timeframe="monthly" excerpt_length="15"]

Does it affect site performance?

No, the plugin uses WordPress caching system and optimized database queries to maintain fast performance.

How are bots filtered?

Advanced bot detection includes:

  • Common bot signature filtering
  • Automated traffic detection
  • Header validation
  • Behavior analysis

Cookie Usage

  • Duplicate view prevention cookie expires after 6 hours
  • Cookies are secure and HTTP-only
  • No personal data is stored in cookies

Performance

  • View counts are cached for 1 hour
  • Monthly aggregation runs automatically
  • Database queries are optimized

Developer Constants

  • dddPostViews_POST_VIEWS_VERSION
  • dddPostViews_PLUGIN_PATH
  • dddPostViews_PLUGIN_URL

Can I customize the display?

Yes, use CSS to style:

  • .ddd-post-views - Basic view counter
  • .ddd-top-posts-grid - Top posts grid container
  • .ddd-top-post - Individual post card
  • .ddd-post-excerpt - Post excerpt in grid view
  • .ddd-post-thumbnail - Post thumbnail container
  • .ddd-post-content - Post content wrapper

Display Options

  • Grid layout automatically adjusts to:
  • 1 column on mobile
  • 2 columns on tablet (768px+)
  • 3 columns on desktop (1024px+) You can also customize:
  • Excerpt length using the excerpt_length parameter
  • Grid layout appearance using CSS
  • Display style (full/minimal) using the display parameter

更新日志:

1.0.0