Linux 软件免费装
Banner图

Fattami Reading Time

开发者 ayoubfattami
更新时间 2026年9月12日 18:30
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode word count reading time estimated reading time read time

下载

1.0.0

详情介绍:

Fattami Reading Time adds a small, elegant "Reading time: 4 minutes" badge to your posts so visitors know what to expect before they start reading. Most reading time plugins rely on PHP's str_word_count(), which only understands ASCII letters and therefore undercounts French accented words, and completely ignores Arabic, Cyrillic, Chinese, Japanese or Korean text. Fattami Reading Time uses Unicode-aware counting instead: Features Developer hooks

安装:

  1. Upload the fattami-reading-time folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Go to Settings > Reading Time to choose the reading speed, the badge position and the post types.

常见问题:

How is the reading time calculated?

The plugin counts the words of the post content (after removing HTML and shortcodes) and divides the result by the reading speed set in the options (200 words per minute by default). The result is rounded up, with a minimum of 1 minute.

Can I show the badge somewhere else than before or after the content?

Yes. Set the position to "Do not insert automatically" and use the [fattami_reading_time] shortcode wherever you like, for example in a template or a Shortcode block. You can target another post with [fattami_reading_time id="123"] and change the text with [fattami_reading_time label="Read in:"].

Does it work with languages other than English?

Yes. The word counting is Unicode-aware and handles accented characters, Arabic, Cyrillic and CJK scripts. All strings displayed by the plugin are translatable.

Does it slow down my site?

No. The count is done in PHP when the page is rendered, no database table is created and the stylesheet is only loaded when a badge is actually displayed.

更新日志:

1.0.0