Linux 软件免费装
Banner图

Post Views by DevDesignDazzle

开发者 devdesigndazzle
更新时间 2025年5月18日 06:27
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

analytics post views view counter WordPress post views view tracking plugin

下载

1.0.0

详情介绍:

Post Views by DevDesignDazzle is a lightweight and powerful WordPress plugin designed to track and display post views effortlessly. Whether you’re a blogger wanting to see which posts get the most attention, a news site owner keeping tabs on article performance, or a content creator curious about audience engagement, this plugin makes it simple. It offers advanced view tracking, reliable bot filtering, and plenty of display options to give you real insights into your content’s popularity. What makes this plugin special? It lets you show off your top posts sorted by views, whether that’s daily, weekly, monthly, or total counts, all based on what you choose. You can add these displays to your site using handy shortcodes or PHP code in your theme files. For example, you could highlight your top five posts of the month in a neat grid or list them in a sidebar widget. It’s flexible and built to fit your needs. To keep your post views accurate, the plugin uses sessions and cookies to stop duplicate counts within a 6-hour window. It also filters out admin views and blocks bots with smart detection, so you’re only seeing real human traffic. On top of that, you get a detailed statistics dashboard right in your WordPress admin area, where you can filter views by day, month, or total to spot trends. Here’s a peek at how you can display post views on your site. You’ve got a simple shortcode like [dddPostViews] to show views for a single post, with options to limit it by timeframe, such as daily or monthly. Want to display views for a specific post outside its page? Just add a post_id like [dddPostViews post_id="123" timeframe="monthly"]. Developers can use the PHP function <?php echo dddPostViews_display_post_views(['post_id' => 123, 'timeframe' => 'monthly']); ?> for the same result. And if you want to showcase your most popular content, the [dddPostViews_top_posts] shortcode creates a responsive grid or list of top posts, sorted by views, with options to tweak the number of posts, timeframe, and excerpt length. Key Features of Post Views by DevDesignDazzle Who Needs This Plugin? Why Choose Post Views by DevDesignDazzle? This plugin combines top-notch bot detection, fast performance, and customizable displays, all wrapped up in the trusted GPLv2 license. It’s the perfect tool for anyone serious about post views.

安装:

  1. Download and upload the plugin folder to /wp-content/plugins/.
  2. Activate Post Views by DevDesignDazzle from the WordPress Plugins menu.
  3. Head to Post Views in your admin dashboard to see your stats.
  4. Use shortcodes or PHP functions to show post views on your site.

屏幕截图:

  • Settings Page: Customize tracking and display settings.
  • Top Posts Responsive Grid: Highlight your most viewed content.

升级注意事项:

1.0.0 First version with solid post views tracking and display features. No upgrades yet!

常见问题:

How Does Post Views by DevDesignDazzle Count Views?

It tracks views with a 6-hour window to prevent duplicates, using sessions and secure, HTTP-only cookies. Admin views and bot traffic get filtered out automatically for trustworthy numbers.

How Can I Display Post Views?

You’ve got three great options to show post views anywhere on your site:

  1. Post Views Shortcode: Use [dddPostViews] to display views for the current post. Add a timeframe like daily, monthly, or total to filter the count. Need views for a specific post? Try [dddPostViews post_id="123" timeframe="monthly"] to show last month’s views for post ID 123.
  2. Post Views PHP Function: Developers can drop <?php echo dddPostViews_display_post_views(); ?> into theme files. It works just like the shortcode, so <?php echo dddPostViews_display_post_views(['post_id' => 123, 'timeframe' => 'monthly']); ?> gives you the same result as above.
  3. Top Posts Shortcode: Show off your best content with [dddPostViews_top_posts]. It creates a responsive grid or list of top posts, sorted by views in descending order, based on your chosen timeframe. Options include display (set to minimal for a list in widgets or full for a grid), number (how many posts to show), timeframe (daily, monthly, or total), and excerpt_length (word count for each post’s excerpt). For example, [dddPostViews_top_posts display="full" number="5" timeframe="monthly" excerpt_length="15"] shows five top posts from the past month in a grid with 15-word excerpts.
  4. Top Posts PHP Function: Developers can grab top post IDs with $post_ids = dddPostViews_get_top_posts(5, 'total'); and build custom displays however they like.

Does It Slow Down My Site?

Not at all! It uses WordPress caching with a 1-hour duration and optimized database queries to stay lightning fast.

How Are Bots Detected and Filtered?

The plugin’s advanced system catches bots with:

  • Bot signature recognition.
  • Automated traffic detection.
  • Header validation.
  • Behavioral analysis.

What About Cookies?

Cookies stop duplicate views and expire after 6 hours. They’re secure, HTTP-only, and don’t store personal data.

Can I Customize the Display?

Yes! Style it with CSS classes like:

  • .ddd-post-views for the view counter.
  • .ddd-top-posts-grid for the grid container.
  • .ddd-top-post for each post in the grid.
  • .ddd-post-excerpt for excerpt text.
  • .ddd-post-thumbnail for thumbnails.
  • .ddd-post-content for the content wrapper.

What Display Options Are Available?

  • Responsive Grid: Adjusts to 1 column on mobile, 2 on tablets (768px+), and 3 on desktops (1024px+).
  • Customization: Set excerpt length with excerpt_length and pick display="full" for grids or display="minimal" for lists.

Developer-Friendly Features

  • Constants: dddPostViews_POST_VIEWS_VERSION, dddPostViews_PLUGIN_PATH, dddPostViews_PLUGIN_URL.
  • Hooks and filters for custom tweaks.

更新日志:

1.0.0