跳到内容

Most And Least Read Posts Widget

v2.5.21

whiletrue · 2011年8月8日 上架

Provide two widgets, showing lists of the most and reast read posts.

正在使用
900+
评分
5.0 / 5
累计下载
9.4 万
最近更新
2026年8月14日
6 条评价需要 WordPress 2.9+已测试到 7.1.5PHP 7.4+

贡献者

截图

Sample Widget on site, plain wiew
Sample Widget on site, plain wiew
Sample Widget on site, with post hits and thumbs
Sample Widget on site, with post hits and thumbs
Options available in the Admin Widget box
Options available in the Admin Widget box
Options available in the Admin Settings menu
Options available in the Admin Settings menu

“Most And Least Read Posts Widget” is a free plugin for WordPress. developed by Giuliano Polverari (WhileTrue.it) to generate lists of the most and least read posts.

The following options are customizable:

  • number of posts to show
  • exclude posts whose title contains certain words
  • show post hits after the title (style customizable via CSS class)
  • exclude posts older than XX days

The plugin starts counting hits once activated, storing them in the “custom_total_hits” custom field without the need of external accounts.

The most popular web crawlers (e.g. Googlebot) are recognized and their hits discarded; also Admin hits are discarded.

Archived post hits are shown in a column inside the backend post list.

The plugin is compatible with multi-language WPML plugin, showing most/least read posts for current language.

Optionally, the number of hits can be shown inside the post content, with:

  • a custom phrase, e.g. “This post has already been read XX times!”
  • a custom position (above the post, below the post, both)
  • a custom CSS style

If you want to show the post hits anywhere inside the template loop, you can the PHP function provided, e.g.:

echo most_and_least_read_posts_get_hits(get_the_ID());

Shortcode

Also, [most_read_posts] a shortcode is available. Use it like this:

[most_read_posts type="most" posts_number="5" show_thumbs="false" date_from="2016-01-01" date_to="2016-04-30"]

Shortcode attributes:

  • type: “most” or “least”
  • posts_number
  • words_excluded
  • title_max_chars
  • excerpt_max_chars
  • show_thumbs: “true” or “false”
  • add_line_break_before_thumbs: “true” or “false”
  • show_hits: “true” or “false”
  • show_hits_text (default: “views”)
  • days_ago
  • date_from and date_to: if set, overwrite the “days_ago” attribute (format: YYYY-MM-DD)

Reference

For more informations: www.whiletrue.it

Do you like this plugin? Give a chance to our other works:

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums