Post Views for Jetpack

外掛說明

依據 Jetpack [統計資料] 模組的記錄,顯示網站每一篇文章的瀏覽次數。

這是一個持續開發的外掛,請在技術支援論壇撰寫新的討論串讓我 (指開發者) 知道使用者喜歡這個外掛的原因,以及使用者將文章瀏覽量顯示於網站何處。

安裝方式

  1. 安裝並啟用 Jetpack 外掛,然後啟用 [統計資料] 模組。
  2. 透過 WordPress.org 外掛目錄手動安裝,或透過網站控制台自動安裝 Post Views for Jetpack。
  3. 啟用外掛。
  4. 大功告成!:)

常見問題集

使用外掛的 4 種方式

  1. 在網站文章或頁面中的任何位置插入 [jp_post_view] 短代碼,便能顯示該篇文章/頁面的瀏覽量。
  2. 使用 [全部時間網站統計資料] 小工具,便能顯示使用 Jetpack [統計資料] 模組後的網站瀏覽量。
  3. 在目前使用的佈景主題檔案中使用外掛提供的短代碼,例如 <?php echo do_shortcode( '[jp_post_view]' ); ?>。如果使用這個方式,我 (指開發者) 建議使用子佈景主題,而不要修改上層佈景主題檔案。
  4. 使用功能性外掛 (例如這個) 為網站新增自訂程式碼片段,便不須修改佈景主題檔案。在程式碼片段中,網站管理員能決定哪個頁面或哪篇文章要顯示瀏覽量。以這個程式碼片段範例來說,計數器僅會顯示於文章頁面,並顯示於全部文章的內容尾端。

使用者評論

2021 年 9 月 11 日
Really simple and easy to use, right to the point! A simple code that shows the number of hits per post, just what I've been looking for.
2021 年 7 月 27 日
Très satisfait, enfin ce que je cherchais ! On voit bien le nombre de vues sur une page d'article sur notre compte WordPress, simplement installé le code [jp_post_view]. Le nombre de vues commence dès le moment de la création. Donc, même si vous avez crée votre article il y a quelques mois, vous installez le code et vous voyez depuis le début le nombre de vue! Très recommandable!
2020 年 3 月 4 日
Easy to use php function in theme templates
閱讀全部 10 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Post Views for Jetpack〉的開發相關工作。

參與者

〈Post Views for Jetpack〉外掛目前已有 7 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Post Views for Jetpack〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.5.0

Release Date: February 9, 2023

  • Add a new filter, jp_post_views_cache_duration, allowing you to change the duration of the local cache for the post views.

1.4.0

Release Date: December 6, 2022

  • Ensure full compatibility with Jetpack version 11.5 and above.

1.3.0

Release Date: July 1, 2020

  • Fully rely on WordPress.org translation packs for translations.

1.2.0

Release Date: April 2, 2019

  • Ensure the number of views is internationalized properly.

1.1.0

Release Date: November 18, 2016

  • Releasing to the WordPress.org plugin directory.

1.0.0

  • Initial release.