內容簡介
ViewRank Post View Rankings 是一款輕量級的 WordPress 外掛,能夠追蹤頁面瀏覽數並根據瀏覽量顯示熱門文章。它還提供隨機文章顯示、小工具、短碼、縮圖顯示、分類顯示及可自訂的顯示設定。
【主要功能】
• 熱門文章排名
• 隨機文章顯示
• 今日、7天、30天及歷史排名
• 短碼支援
• 小工具支援
• 縮圖顯示
外掛標籤
開發者團隊
原文外掛簡介
Lightweight page-view tracking and popular-post ranking for WordPress.
日本語:WordPressの人気記事ランキングとPV計測
ViewRank Post View Rankingsは、WordPressの投稿記事のページビュー(PV)を計測し、よく読まれている記事を人気記事ランキングとして表示するプラグインです。ブログやメディアサイトで、読者に「次に読む記事」を案内するために活用できます。
本日・7日間・30日間・全期間の4つの集計期間に対応。最近注目されている記事と、長く読まれている定番記事を、目的に合わせて紹介できます。7日間・30日間は本日を含む期間で、WordPressに設定されたタイムゾーンを基準に集計します。
ランキングはウィジェットやショートコードで設置できます。ウィジェットでは「人気記事」と「ランダム記事」を選択し、表示件数、サムネイルの有無・位置・サイズ、カテゴリー、PV数、文字色を設定できます。複数のウィジェットを設置した場合も、それぞれの表示内容や見た目を個別に調整できます。
ランダム記事表示は、閲覧数の順位に関係なく記事を紹介したいときに便利です。人気記事ランキングと組み合わせることで、過去の記事を読者に見つけてもらうきっかけを作れます。
English: WordPress popular posts and page-view tracking
ViewRank Post View Rankings tracks page views (PV) for WordPress posts and displays your most-read articles as a popular posts ranking. Use it on a blog or content site to help readers find another article to read.
Choose from four ranking periods: today, the last 7 days, the last 30 days, or all time. Highlight recent interest with a shorter period, or showcase established favorites with the all-time ranking. The 7-day and 30-day periods include today and follow your WordPress timezone.
Display popular posts with a widget or shortcode. Each widget lets you choose popular or random posts and customize the number of posts, thumbnail visibility, position and size, categories, view counts, and text colors. Multiple widgets can have their own settings.
The random posts feature introduces articles independently of their view counts. Combine it with popular post lists to give readers more ways to discover older content.
主な機能 / Key features
人気記事ランキング:計測したPV数に基づいて投稿記事を表示。 / Popular posts ranked by recorded page views.
4つの集計期間:本日・7日間・30日間・全期間。 / Today, 7-day, 30-day, and all-time rankings.
ランダム記事表示:閲覧数に関係なく記事を紹介。 / Random post lists for content discovery.
ウィジェットとショートコード:設置場所に合わせた表示方法。 / Widget and shortcode display options.
表示件数:1〜50件を指定可能。 / Display between 1 and 50 posts.
サムネイル:表示の切り替え、左右の配置、幅・高さの調整。 / Optional thumbnails with left/right placement and adjustable dimensions.
カテゴリー・PV数・文字色:サイトに合わせて表示を調整。 / Configurable categories, view counts, and text colors.
ウィジェットごとの設定:複数の一覧を個別にカスタマイズ。 / Independent display settings for each widget.
管理者のPV除外:ログイン中の管理者による閲覧を計測対象から除外可能。 / Option to exclude logged-in administrator views.
6言語に対応:日本語・英語・簡体字中国語・繁体字中国語・スペイン語・ドイツ語。 / Japanese, English, Simplified Chinese, Traditional Chinese, Spanish, and German interface options.
使い始めるには / Getting started
有効化後、「設定 > ViewRank Post View Rankings」で表示言語と管理者のPV除外を設定してください。ウィジェットを利用できるテーマではViewRankのウィジェットを追加するか、投稿・固定ページのショートコードブロックに [spp_popular_posts] を入力して表示できます。ランダム記事を表示する場合は [spp_random_posts] を使用します。
After activation, open Settings > ViewRank Post View Rankings to choose the interface language and administrator view exclusion setting. Add a ViewRank widget in a theme that supports widget areas, or enter [spp_popular_posts] in a Shortcode block in a post or page. Use [spp_random_posts] for a random post list.
ショートコードの使い方 / Shortcodes
[spp_popular_posts]
[spp_popular_posts period="7days" count="5"]
[spp_random_posts]
[spp_random_posts count="5"]
Popular post periods: today, 7days, 30days, all. Count: 1–50.
人気記事の期間:today、7days、30days、all。表示件数:1〜50。
Both shortcodes accept these optional display attributes:
両方のショートコードで次の表示設定を指定できます。
show_thumbnail=”1″: thumbnail on (1) / off (0). サムネイルの表示/非表示。
thumb_position=”left”: left / right. サムネイルの位置。
thumb_width=”72″, thumb_height=”72″: size in pixels, 20–300. サムネイルの幅・高さ。
show_views=”1″: PV count on (1) / off (0). PV数の表示/非表示。
show_category=”1″: category on (1) / off (0). カテゴリーの表示/非表示。
title_color=”#333333″, category_color=”#666666″: hex colors. 文字色(16進カラーコード)。
Examples / 使用例:
[spp_popular_posts period="30days" count="5" show_thumbnail="1" thumb_width="80" thumb_height="80" show_views="0" title_color="#333333"]
[spp_random_posts count="5" show_thumbnail="0" show_category="0"]
Omitted attributes use existing saved defaults or initial values. Widget settings affect that widget only; change shortcode appearance using the attributes above.
省略した項目には既存の保存済み設定または初期値を使用します。ウィジェット内の設定は、そのウィジェットだけに適用されます。ショートコードの見た目は上記の属性で変更してください。
PV計測とキャッシュ / Tracking and caching
PV tracking uses JavaScript and WordPress AJAX, so cached article pages can still record views. JavaScript and access to wp-admin/admin-ajax.php are required. Clear your page/CDN cache after updating so existing cached pages load the new tracker. Each normal page load counts once; this is PV, not unique visitor tracking. Bot exclusion is best-effort. A fresh nonce is obtained before recording each view to avoid expired nonces in cached HTML.
PVはJavaScriptとWordPress AJAXで記録するため、記事ページがキャッシュされていても計測できます。JavaScriptとwp-admin/admin-ajax.phpへの通信が必要です。更新後はページ/CDNキャッシュを削除してください。通常のページ読み込みごとに1回加算するPV計測で、ユニークユーザー数ではありません。ボット除外は完全ではありません。
Ranking database results are cached for up to 60 seconds. Your page/CDN cache can keep displayed rankings unchanged for longer. Private, deleted and password-protected posts are excluded. Existing view data and settings are retained.
ランキング集計結果は最大60秒キャッシュします。ページ/CDNキャッシュによって表示の更新はさらに遅れる場合があります。非公開・削除済み・パスワード保護記事はランキングから除外します。既存のPVデータと設定は引き継ぎます。
How do I display popular posts? / 人気記事を表示するには?
Use the ViewRank Post View Rankings widget or the available shortcode to display popular posts. You can configure the ranking period, number of posts, thumbnails, PV counts, and categories from the widget settings.
ViewRank Post View Rankingsのウィジェットや利用可能なショートコードを使って人気記事を表示できます。ランキング期間、表示件数、サムネイル、PV数、カテゴリーなどは各ウィジェットから設定できます。
How do I display random posts? / ランダム記事を表示するには?
Add the ViewRank Post View Rankings widget and select Random posts under Display type. The number of posts, thumbnail display, thumbnail position, size, PV count, category display, and text colors can be customized.
ViewRank Post View Rankingsウィジェットの「表示タイプ」で「ランダム記事」を選択すると、記事をランダムに表示できます。表示件数、サムネイル、位置、サイズ、PV数、カテゴリー、文字色などをカスタマイズできます。
Can I exclude administrator page views? / 管理者のPVを除外できますか?
Yes. Enable the administrator PV exclusion option in the plugin settings.
はい。プラグイン設定で「ログイン中の管理者によるPVをカウントしない。」を有効にできます。
Which ranking periods are supported? / どのランキング期間に対応していますか?
The plugin supports today, 7 days, 30 days, and all time.
「本日」「7日間」「30日間」「全期間」に対応しています。
Can I change the display language? / 表示言語を変更できますか?
Yes. The plugin supports Japanese, English, Simplified Chinese, Traditional Chinese, Spanish, and German.
はい。日本語、英語、簡体字中国語、繁体字中国語、スペイン語、ドイツ語に対応しています。
Where can I customize the appearance? / 表示設定はどこで変更できますか?
Open the settings of a ViewRank Post View Rankings widget in your widget area.
設置したViewRank Post View Rankingsウィジェットを開くと、表示タイプや見た目をまとめて設定できます。
Does this count visitors or page views? / 訪問者数とPV数は同じですか?
ViewRank counts page views, not unique visitors. Repeated page loads can add views. It tracks individual WordPress posts, rather than providing a full-site analytics dashboard for pages and archives.
ViewRankが計測するのはPV数で、訪問者の実人数ではありません。同じ人が記事を読み直した場合も加算されることがあります。計測対象は個別の投稿記事であり、固定ページやアーカイブを含むサイト全体のアクセス解析機能ではありません。
Why is my ranking empty or slow to change? / ランキングが空、または更新されないのはなぜですか?
Popular post rankings need recorded views within the selected period. Check that JavaScript is enabled and that caching or security settings allow requests to wp-admin/admin-ajax.php. If administrator views are excluded, your own logged-in visits will not add views. Ranking queries are cached for up to 60 seconds; page or CDN caches can delay visible changes further.
選択した期間内にPVが記録されていないと、人気記事ランキングには記事が表示されません。JavaScriptが有効で、キャッシュやセキュリティ設定が wp-admin/admin-ajax.php への通信を妨げていないか確認してください。管理者のPV除外が有効な場合、ログイン中の管理者の閲覧は加算されません。ランキング集計には最大60秒のキャッシュがあり、ページ/CDNキャッシュによって画面への反映がさらに遅れる場合があります。
