前言介紹
- 這款 WordPress 外掛「Piggly View」是 2019-04-17 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2019-05-15,距離現在已有 2181 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
內容簡介
這個外掛非常容易使用。請參閱以下內容。
它會儲存單一文章的所有瀏覽次數。您可以設定讓它忽略已登入的使用者,或是停用某些文章的功能。
在文章檢視表格中,您會看到「瀏覽次數」欄位。您可以在設定中移除它。
所有瀏覽次數將會快取 24 小時。您可以停用它,或是更改快取清除的時間。
目前,Piggly Views 支援以下語言:
英文
葡萄牙文(巴西)
其他資源
您可以使用短碼 [piggly_views] 取得目前文章的瀏覽次數,或是使用 [piggly_views id="post_id"] 取得特定文章的瀏覽次數。它會依照設定中的格式返回瀏覽次數。
您可以使用 piggly_view_collection($limit,$days) 方法來取得瀏覽次數最高的文章。其中 $days 為「現在時間」與「過去 X 天」的範圍,$limit 為文章數量,$types 為文章種類的陣列,例如:post、page 或 attachment。
您可以使用短碼 [piggly_views_collection limit="X" days="X" types="post, page, attachment"] 取得瀏覽次數最高的文章的預設樣板。
取得瀏覽次數最高的文章
取得瀏覽次數最高的文章非常簡單,只需要使用全域函式 piggly_view_collection()。預設的 $days 值為 30,預設的 $limit 值為 5,而預設的 $types 陣列為「文章」。
// 取得過去 180 天內瀏覽次數最高的 10 篇文章。
$most_viewed = piggly_view_collection( 10, 180 );
if ( !empty( $most_viewed ) ) :
foreach ( $most_viewed as $post ) :
$postID = $post->post_id;
endforeach;
endif;
換句話說,您也可以使用短碼 [piggly_views_collection limit="10" days="180" types="post"] 來返回預設樣板。
當您使用 [piggly_views_collection] 短碼時,它會使用以下的樣板,您可以藉由使用 .pgl-views-post 來自訂 CSS。
>
>
>
{{title}}
>
> {{category}}
> {{author}}
> {{date}}
>
>
如何使用
從 WordPress 的管理介面中,前往「外掛程式 > 安裝的外掛」,並往下捲動直到找到「Piggly Views」。您需要先啟用它,然後點選「設定」進行設定。
設定
在文章檢視表格中顯示或隱藏「瀏覽次數」欄位。
停用已登入使用者的追蹤。
將瀏覽次數從 1000 轉換為「1K」格式。
快取瀏覽次數資料。
在停用外掛時保留選項和/或表格。
原文外掛簡介
The plugin is quite simple to use. See below.
It will store all views for a Single Post. You can configure it to ignore views to logged users and disable for some posts.
In the Posts View Table you will see the View column. You can remove it in configurations.
All views will be cached for 24 hours. You can disabled it or change the flush cache hour.
For now, Piggly Views is available in:
English,
Portuguese Brazilian.
Some additional resources
You can use the shortcode [piggly_views] to get views to the current post OR use [piggly_views id="post_id"] to a specific post. It will return the number of views following the format set in the settings.
You can get a collection of most viewed posts by using the method piggly_view_collection($limit,$days). Where $days is the range between NOW and X($days) days, $limit is the number of posts and $types is one or more post types slug into an array, such as: post, page or attachment.
You can use the shortcode [piggly_views_collection limit="X" days="X" types="post, page, attachment"] to get a collection of most viewed posts returning the default template.
Getting the most viewed posts
An easy way to get the most viewed posts is using the global function piggly_view_collection(). The default $days values is 30, default $limit value is 5 and default $types array is post.
// 10 most viewed posts in the last 180 days.
$most_viewed = piggly_view_collection( 10, 180 );
if ( !empty( $most_viewed ) ) :
foreach ( $most_viewed as $post ) :
$postID = $post->post_id;
endforeach;
endif;
In the other side, you can use the shortcode [piggly_views_collection limit="10" days="180" types="post"] to return the default template.
When you use [piggly_views_collection] shortcode, it will return the following template for each post. Customize CSS as your needs by using .pgl-views-post as parent.
>
>
>
{{title}}
>
> {{category}}
> {{author}}
> {{date}}
>
>
How to Use
From your WordPress administration panel go to Plugins > Installed Plugins and scroll down until you find Piggly Views. You will need to activate it first, then click on Settings to configure it.
Configuration
Display or not View Column in Post Table.
Disable tracking for Logged Users.
Convert Views from 1000 to 1K format.
Cache Views Data.
Flush cache after X hours.
Keep options and/or table when uninstall the plugin.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Piggly View」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.1 | 1.1.0 | 1.1.1 | trunk |
延伸相關外掛(你可能也想知道)
GA Google Analytics – Connect Google Analytics to WordPress 》t connects your WordPress website to Google Analytics. It supports Universal Analytics (analytics.js), Global Site Tag (gtag.js), and Google Analyt...。
SlimStat Analytics 》追蹤回訪客戶和註冊用戶,監控 JavaScript 事件,偵測入侵,分析電子郵件廣告活動。已有成千上萬的 WordPress 網站在使用它。, 主要功能, , 即時訪問日誌:測...。
Connect Matomo (WP-Matomo, WP-Piwik) 》如果您尚未使用Matomo On-Premise、Matomo Cloud或自己的Matomo實例,請使用 Matomo for WordPress 外掛。, 此外掛程式使用 Matomo API 在 WordPress 儀表板...。
Metricool 》此外掛可讓你將你的 WordPress 博客或網站與 Metricool 連接。Metricool 是一個提供有關你的博客和社交資訊的度量和分析工具,你可以使用 Metricool 設定要發...。
Advanced Shipment Tracking for WooCommerce 》Advanced Shipment Tracking (AST) 提供了所有必要的功能,以管理和自動化 WooCommerce 運輸流程。輕鬆地添加追蹤信息和履行訂單,讓您的客戶了解訂單狀態,...。
WooCommerce Conversion Tracking 》當你整合任何廣告活動時,它們會提供各種追蹤代碼(主要為 JavaScript)並將其插入站點的不同頁面,以便追蹤轉換是如何發生的。, 此外掛在 WooCommerce 購物...。
YITH WooCommerce Order & Shipment Tracking 》使用者研究顯示,97%的顧客希望能夠監視他們在網上購買的產品在運輸過程中的每一步。, 有了免費的 YITH WooCommerce Order & Shipment Tracking 外掛,...。
HandL UTM Grabber / Tracker 》WordPress UTM Tracker Plugin, 經由此外掛即可擷取與追蹤所有 UTM 變數、gclid(以及更多)當使用者進入您網站的任何頁面(您 WP 安裝的任一頁面)時:此外...。
ParcelPanel (Free to install) – Shipment Tracking, Tracking, and Order Tracking for WooCommerce 》ing Plugin for WooCommerce is the best shipment tracking plugin available in WordPress. 💪, , 顧客最關心「我的訂單在哪裡?」。我們創建了 Parcel Pan...。
TrackShip for WooCommerce 》TrackShip 是一個貨運追蹤和購買後體驗平台,可以幫助電商企業掌握其發貨後的工作流程並提供卓越的貨運旅程體驗,幫助 WooCommerce 企業實現承諾、贏得忠誠度...。
Simple Universal Google Analytics 》簡單的 Google Analytics 外掛讓 Google Analytics 追蹤更簡單。如果您想要啟用網站的通用追蹤,只需在外掛設定中輸入您的追蹤 ID。, , 什麼是通用 Google An...。
Easy Pixels 》「Easy Pixels」能夠設定 Google Analytics、Google Ads、Bing、Facebook、LinkedIn、Yandex 和 Twitter 的追蹤程式碼。, 設定 Google TagManager 的追蹤程式...。
Goolytics – Simple Google Analytics 》我需要一個簡潔而小巧的外掛,為在德國經營網站的使用者提供資料保護選項。, 與許多其他 Google Analytics 外掛不同,它提供匿名化 IP 功能,因為這對於德國...。
WP Search Insights – Privacy-Friendly Search Analytics 》WP Search Insights會記錄網站上的所有搜索紀錄。您可以在乾淨且直觀的儀表板中查看搜索是從哪篇文章、頁面或產品發起的。保留最熱門的搜索,包含有和沒有結...。
Super Simple Google Analytics 》這是給希望簡單地將基本的 Google Analytics 追蹤碼插入每個頁面的 head 區塊的人使用的基本選項。, 我只包含了必要的選項;這並不是很令人興奮,但可以可靠...。