Tivy Site Stats
v1.2.1tivy · 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 themmode:ticker(default),inlineorgridlink: URL to link to, ornone(ticker and inline)interval: seconds per item (ticker)columns: 1–6 (grid; automatic if omitted)countup:noto turn off the grid’s count-up animationfont_size: e.g.16px,1remlabel_size: e.g.0.75em,1emlabel_case:uppercaseornonelabel_position:before,after,aboveorbelowformat:fullorshortlabel:yesornoseparator: separator for inline modecolor: hex colour, e.g.#ffffffclass: extra CSS classes
Single figure
[tivy_stat type="words"]
[tivy_stat type="terms" taxonomy="country" label="yes"]
type: any key above, ortermswithtaxonomyformat:full,shortorraw(raw = bare number, no markup)label:yesto include the label (defaultno)label_position:before,after,aboveorbelowcountup:yesto animate- plus
link,font_size,label_size,color,class
Template tags
<?php tivy_ss_stat( 'reading' ); ?>
<?php $words = tivy_ss_get_stat( 'words' ); ?>