跳到内容

Tivy Site Stats

v1.2.1

tivy · 2026年11月25日 上架

Show your total words, posts, photos, years blogging and reading time as a rotating ticker, count-up cards or a single figure.

正在使用
10 以下
评分
暂无
累计下载
0
最近更新
2026年11月25日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

贡献者

You’ve put years into your site. Tivy Site Stats turns all that effort into numbers your visitors will notice: “Words: 359,226” fades into “Photos: 14,232” fades into “Years blogging: 17”.

Statistics

  • Words: across all your published posts, counted properly (no HTML, block markup or shortcodes), with accented characters handled correctly
  • Posts, photos, videos and approved comments
  • Years blogging and Blogging since, worked out from your first post
  • Reading time: how long it would take to read everything you’ve written (“26 hours”, “3.5 days”)
  • Terms in any taxonomy, such as categories, tags or your own (Countries visited: 47, Recipes: 212, Books reviewed: 96)

Four ways to show them

  • Rotating ticker: one figure at a time, fading smoothly. Made for headers and menu bars.
  • Inline list: everything on one line: Words: 359,226 | Posts: 639 | Photos: 14,232
  • Grid: big-number cards that count up from zero when scrolled into view. A ready-made stats page.
  • Single figure: one number inside a sentence: “I’ve written [tivy_stat type=”words”] words so far.”

Built to be fast and friendly

  • Figures are cached and refreshed in the background when you publish, edit, delete, upload or approve a comment, so visitors never wait for a recount
  • Use it with shortcodes, the Site Stats block or PHP template tags
  • Font size, label size, label style, labels, link, rotation speed, number format (359,226 or 359K), columns and reading speed are all configurable, globally or per use
  • Choose which post types count
  • Accessible: screen readers get the full text, the ticker pauses on hover and focus, and visitors who prefer reduced motion see a static list
  • No jQuery, no external requests, no tracking, no cookies

Usage

Statistic keys

words, `posts`, `photos`, `videos`, `comments`, `years`, `since`, `reading`, and `terms:{taxonomy}` (e.g. `terms:category`, `terms:post_tag`).

Ticker, inline list or grid

[tivy_site_stats]
[tivy_site_stats mode="inline"]
[tivy_site_stats mode="grid" columns="4" items="years,words,reading,photos"]

Attributes (all optional, defaults come from Settings Site Stats):

  • items: comma list of keys, in the order you want them
  • mode: ticker (default), inline or grid
  • link: URL to link to, or none (ticker and inline)
  • interval: seconds per item (ticker)
  • columns: 1–6 (grid; automatic if omitted)
  • countup: no to turn off the grid’s count-up animation
  • font_size: e.g. 16px, 1rem
  • label_size: e.g. 0.75em, 1em
  • label_case: uppercase or none
  • label_position: before, after, above or below
  • format: full or short
  • label: yes or no
  • separator: separator for inline mode
  • color: hex colour, e.g. #ffffff
  • class: extra CSS classes

Single figure

[tivy_stat type="words"]
[tivy_stat type="terms" taxonomy="country" label="yes"]
  • type: any key above, or terms with taxonomy
  • format: full, short or raw (raw = bare number, no markup)
  • label: yes to include the label (default no)
  • label_position: before, after, above or below
  • countup: yes to animate
  • plus link, font_size, label_size, color, class

Template tags

<?php tivy_ss_stat( 'reading' ); ?>
<?php $words = tivy_ss_get_stat( 'words' ); ?>

Plums

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

导航

说明

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

© 2026 Plums