[WordPress] 外掛分享: Most And Least Read Posts Widget

首頁外掛目錄 › Most And Least Read Posts Widget
WordPress 外掛 Most And Least Read Posts Widget 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(6 則評價)
341 天前
最後更新
問題解決
WordPress 2.9+ PHP 7.0+ v2.5.21 上架:2011-08-07

內容簡介

「最受歡迎與最不受歡迎文章小工具」是一款 WordPress 的免費外掛,由 Giuliano Polverari (WhileTrue.it) 開發,可生成最受歡迎和最不受歡迎文章的清單。

以下選項可自訂:

要顯示的文章數量
要排除標題包含某些詞語的文章
在標題後顯示文章瀏覽數字(樣式可透過 CSS 類進行自訂)
排除 X 天前的文章

外掛啟動時開始計算點擊次數,並將點擊數存儲在「custom_total_hits」自訂欄位中,不需要外部帳戶。

最受歡迎的網絡爬蟲(例如 Googlebot)將被識別並將其點擊次數丟棄;同樣,管理員的點擊次數也會被丟棄。

儲存在檔案庫的文章點擊次數顯示在後台文章列表中的欄位中。

此外,外掛與多語言 WPML 外掛兼容,可顯示當前語言的最受/最不受歡迎文章。

建議還可在文章內容中顯示點擊次數,具體選項包括:

自訂短語例如「此文章已被閱讀 XX 次!」
自訂位置(文章上方、下方或兩者)
自訂 CSS 樣式

如果要在範本迴圈中的任何位置顯示文章點擊次數,則可以使用提供的 PHP 函數,例如:

短碼

此外,還提供了 [most_read_posts] 短碼。您可以像這樣使用它:
[most_read_posts type=”most” posts_number=”5″ show_thumbs=”false” date_from=”2016-01-01″ date_to=”2016-04-30″]

短碼屬性:

type:「most」或「least」
posts_number
words_excluded
title_max_chars
excerpt_max_chars
show_thumbs:「true」或「false」
add_line_break_before_thumbs:「true」或「false」
show_hits:「true」或「false」
show_hits_text(默認值:「views」)
days_ago
date_from 和 date_to:如果設置,將覆蓋「days_ago」屬性(格式:YYYY-MM-DD)

參考資料

更多信息: www.whiletrue.it

您喜歡此外掛嗎?請試試我們的其他作品:

Good old Share
Good old Twitter Feed Widget
Tilted Tag Cloud Widget
Reading Time

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.21) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Most And Least Read Posts Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

“Most And Least Read Posts Widget” is a free plugin for WordPress. developed by Giuliano Polverari (WhileTrue.it) to generate lists of the most and least read posts.
The following options are customizable:

number of posts to show
exclude posts whose title contains certain words
show post hits after the title (style customizable via CSS class)
exclude posts older than XX days

The plugin starts counting hits once activated, storing them in the “custom_total_hits” custom field without the need of external accounts.
The most popular web crawlers (e.g. Googlebot) are recognized and their hits discarded; also Admin hits are discarded.
Archived post hits are shown in a column inside the backend post list.
The plugin is compatible with multi-language WPML plugin, showing most/least read posts for current language.
Optionally, the number of hits can be shown inside the post content, with:

a custom phrase, e.g. “This post has already been read XX times!”
a custom position (above the post, below the post, both)
a custom CSS style

If you want to show the post hits anywhere inside the template loop, you can the PHP function provided, e.g.:
echo most_and_least_read_posts_get_hits(get_the_ID());

Shortcode
Also, [most_read_posts] a shortcode is available. Use it like this:
[most_read_posts type="most" posts_number="5" show_thumbs="false" date_from="2016-01-01" date_to="2016-04-30"]

Shortcode attributes:

type: “most” or “least”
posts_number
words_excluded
title_max_chars
excerpt_max_chars
show_thumbs: “true” or “false”
add_line_break_before_thumbs: “true” or “false”
show_hits: “true” or “false”
show_hits_text (default: “views”)
days_ago
date_from and date_to: if set, overwrite the “days_ago” attribute (format: YYYY-MM-DD)

Reference
For more informations: www.whiletrue.it
Do you like this plugin? Give a chance to our other works:

Good old Share
Good old Twitter Feed Widget
Tilted Tag Cloud Widget
Reading Time

延伸相關外掛

文章
Filter
Mastodon