[WordPress] 外掛分享: WP-PostViews

WordPress 外掛 WP-PostViews 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「WP-PostViews」是 2006-02-07 上架。
  • 目前有 100000 個安裝啟用數。
  • 上一次更新是 2023-08-09,距離現在已有 633 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 有 64 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

gamerz |

外掛標籤

hits | views | Counter | postviews |

內容簡介

使用方法

打開 wp-content/themes/<您的佈景主題名稱>/index.php
您也可以將它放在 archive.php、single.php、post.php 或 page.php 中。
尋找:
在它下面的任何地方添加(您想要顯示觀看次數的地方):
或者您可以在文章中使用shortcode[views]或[views id="1"](其中1是文章的ID)
進入 WP管理員 -> 設置 -> 文章觀看次數來設置外掛程式。

建立狀態

開發

https://github.com/lesterchan/wp-postviews/

翻譯

http://dev.wp-plugins.org/browser/wp-postviews/i18n/

鳴謝

插件圖標由Iconmoon從Flaticon製作

捐贈

我把大部分的業餘時間用於創建、更新、維護和支援這些外掛程式,如果您真的喜歡我的外掛程式並且能夠撥出一些錢的話,我會非常感激。如果無法捐款,也歡迎免費使用。

版本1.76.1

新增:在觀看模板中添加文章作者
新增:增強WordPress 5.3

版本1.76

新增:添加postviews_should_count篩選器
修復:從intval()更改為(int)並與其一起使用sanitize_key()。

版本1.75

新增:使用WP_Query()來獲取最多/最少觀看的文章

版本1.74

新增:增強WordPress 4.7
新增:模板變量%POST_CATEGORY_ID%。它返回帖子的類別ID。如果您使用Yoast SEO Plugin,它將返回優先類別ID。感謝@FunFrog-BY

版本1.73

修復:在預覽模式中,不要計算觀看次數

版本1.72

新增:將%POST_THUMBNAIL%添加到模板變量中

版本1.71

修復:WordPress 4.3中Widget Constructor的通知

版本1.70

修復:與WP-Stats的整合

版本1.69

新增:shortcode [views]或[views id=”POST_ID”]將觀看次數嵌入文章中
新增:添加模板變量%VIEW_COUNT_ROUNDED%以支持四捨五入的觀看次數,例如10.1k或11.2M

版本1.68

新增:添加action hook“postviews_increment_views”和“postviews_increment_views_ajax”
新增:允許在Widget下選擇自定義文章類型

版本1.67

新增:即使WP_CACHE為true,也允許用戶不使用AJAX來更新觀看次數

版本1.66

新增:支持MultiSite網絡啟用
新增:添加%POST_DATE%和%POST_TIME%到模板變量中
新增:添加中國搜索引擎機器人
新增:允許傳遞文章類型的數組以获取最多/最少*()函數。Props Leo Plaw.
修復:將卸載移動到卸載

原文外掛簡介

Usage

Open wp-content/themes//index.php
You may place it in archive.php, single.php, post.php or page.php also.
Find:
Add Anywhere Below It (The Place You Want The Views To Show):
Or you can use the shortcode [views] or [views id="1"] (where 1 is the post ID) in a post
Go to WP-Admin -> Settings -> PostViews to configure the plugin.

Development
https://github.com/lesterchan/wp-postviews/
Translations
http://dev.wp-plugins.org/browser/wp-postviews/i18n/
Credits

Plugin icon by Iconmoon from Flaticon

Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
Version 1.76.1

NEW: Add Post Author in views template
NEW: Bump for WordPress 5.3

Version 1.76

NEW: Added postviews_should_count filter
FIXED: Change to (int) from intval() and use sanitize_key() with it.

Version 1.75

NEW: Use WP_Query() for most/least viewed posts

Version 1.74

NEW: Bump WordPress 4.7
NEW: Template variable %POST_CATEGORY_ID%. It returns Post’s Category ID. If you are using Yoast SEO Plugin, it will return the priority Category ID. Props @FunFrog-BY

Version 1.73

FIXED: In preview mode, don’t count views

Version 1.72

NEW: Add %POST_THUMBNAIL% to template variables

Version 1.71

FIXED: Notices in Widget Constructor for WordPress 4.3

Version 1.70

FIXED: Integration with WP-Stats

Version 1.69

NEW: Shortcode [views] or [views id=”POST_ID”]` to embed view count into post
NEW: Added template variable %VIEW_COUNT_ROUNDED% to support rounded view count like 10.1k or 11.2M

Version 1.68

NEW: Added action hook ‘postviews_increment_views’ and ‘postviews_increment_views_ajax’
NEW: Allow custom post type to be chosen under the widget

Version 1.67

NEW: Allow user to not use AJAX to update the views even though WP_CACHE is true

Version 1.66

NEW: Supports MultiSite Network Activation
NEW: Add %POST_DATE% and %POST_TIME% to template variables
NEW: Add China isearch engines bots
NEW: Ability to pass in an array of post types for get_most/least_*() functions. Props Leo Plaw.
FIXED: Moved uninstall to uninstall.php and hence fix missing nonce. Props Julio Potier.
FIXED: Notices and better way to get views from meta. Props daankortenbach.
FIXED: No longer needing add_post_meta() if update_post_meta() fails.

Version 1.65 (02-06-2013)

FIXED: Views not showing in WP-Admin if “Display Options” is not set to “Display to everyone”

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP-PostViews」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.00 | 1.01 | 1.02 | 1.10 | 1.11 | 1.20 | 1.30 | 1.31 | 1.40 | 1.50 | 1.66 | 1.67 | 1.68 | 1.69 | 1.70 | 1.71 | 1.72 | 1.73 | 1.74 | 1.75 | 1.76 | 1.77 | trunk | 1.76.1 | 1.00beta |

延伸相關外掛(你可能也想知道)

  • SRS Simple Hits Counter 》正如其名,這是一個非常簡單的點擊計數器,它可以計算「獨立訪客」和「頁面瀏覽量」的數量。您可以使用小工具或短代碼在網站的任何位置顯示獨立訪客或總頁面...。
  • Post Hit Counter 》「文章瀏覽數計數器」(Post Hit Counter)會如其名所述,統計每篇文章的瀏覽數。瀏覽數會在文章清單中新增一欄、在文章編輯頁面的送出方塊裡和管理條上(在...。
  • WP Post Statistics (Visitors & Visits Counter) 》一個簡單的工具,可用於瞭解您的文章統計數據(包括地理位置), 單篇文章的統計數據包括:, , 全面的概覽頁面(儀表板),包括國家統計、城市、訪客、訪問次...。
  • WordPress Hit Counter 》WordPress Hit Counter 是一個簡單的外掛程式,可在您的部落格上嵌入旋轉里程表式的點擊計數器,顯示您網站訪客的流量數。, 此外掛能讓您選擇多種不同的類型...。
  • Pageviews 》Pageviews 是用於 WordPress 文章和頁面的簡單且輕量級的瀏覽次數統計插件。它基於 JavaScript,與所有緩存插件、代理和複雜配置兼容。Pageviews 使用託管處...。
  • AJAX Hits Counter + Popular Posts Widget 》本外掛使用外部 AJAX 計數器腳本來記錄文章的瀏覽次數,是最適合快取整個頁面或使用其他快取外掛的解決方案。, 此外,外掛還包含了「熱門文章」小工具,可根...。
  • Post Views Stats Counter 》此插件將顯示文章和頁面被查看的次數。, 它是一個簡單的統計分析工具,還顯示每天、每週、每月和所有天的總瀏覽量。這些瀏覽數據會顯示標題和永久鏈接。, 只...。
  • Simple Post Views Count 》插件被棄用了, 現在,我們終於確信谷歌分析統計和追蹤系統是無與倫比的先進做法(其他插件也是,例如:Google Analytics [by MonsterInsights]),相較於無用...。
  • Counter-Hits 》這是一個簡單、易用、快速、適應性強、本地化且客觀的訪問網站計數器。, 它不會向其他伺服器發出任何額外的請求,這意味著它消耗的資源極少。, 顯示任何頁面...。
  • WP-PostViews Plus 》此外掛可以設定是否計算已註冊會員的瀏覽次數,或是首頁的瀏覽次數。, 區分使用者和機器人的方式是透過 HTTP_agent 來進行,並且可以在管理員頁面進行設定。。
  • Hit Counter Max 》Hit Counter Max 是一個簡單的 WordPress 外掛程式,可以在您的博客中嵌入一個旋轉計數器,顯示您網站的訪問量。, 預設情況下,網頁計數器會顯示在您的頁腳中...。
  • Most Read Posts in XX days 》「最多閱讀文章」外掛可以計算文章和頁面的點擊次數,並讓你在以下頁面上展示它們:, , 單篇文章頁面, 頁面, 索引頁面和存檔頁面, 可配置的小工具,也可帶有...。
  • VR-Visitas (hits counter stats) 》這個外掛已被移除,並不再更新。, 非常感謝所有幫助過我的人,還有在這個外掛仍在維持活躍時給予支持的人。。
  • View Post counter 》此外掛為簡單的文章瀏覽次數計數器,使用者可以非常容易地將這個外掛嵌入自己的WordPress主題模板中,只需使用PHP簡碼即可。此外掛相容所有WordPress版本。。
  • Hit Sniffer Live Blog Analytics 》Hit Sniffer服務於2016年9月已關閉, 此外掛現在作為紀念品提供,不久將被刪除。, 那些尋找類似服務的人可以使用Hit Steps。。

文章
Filter
Apply Filters
Mastodon