[WordPress] 外掛分享: Popular post

首頁外掛目錄 › Popular post
WordPress 外掛 Popular post 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
3559 天前
最後更新
問題解決
v1.0 上架:2016-01-08

內容簡介

這個外掛讓您可以輕鬆地獲取熱門文章以及文章的總瀏覽量。只需在查詢字串中使用 'orderby'=>'popularity'。

在參數中加入'post','posts_per_page'=>-1,'orderby'=>'popularity' 然後呼叫 $query = new WP_Query($args);

功能

支援自訂文章類型
選項頁面可以允許在文章類型中選擇熱門文章選項(設定 > MPP 設定)
可以輕鬆地使用 get_view_number()、get_view_string() 獲取特定文章的總瀏覽量,但函數必須在迴圈內使用
要顯示特定文章的總瀏覽量,the_view_number() 和 the_view_string() 兩個函數基本相同,但 the_view_string() 會返回帶有「views」文字。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Popular post」→ 直接安裝(推薦)

原文外掛簡介

This plugin allow you to easily fetch popular post and get total view in post. Simply use 'orderby'=>'popularity' in query string.
Add 'post','posts_per_page'=>-1,'orderby'=>'popularity');
$query = new WP_Query($args);
?>
Features

Support the custom post type
Option page to allow popular post option in post type.(Setting > MPP Setting)
Can easily get total view for particular post using get_view_number(), get_view_string(). Function must be within loop.
To print the total view for particular post the_view_number() and the_view_string() both function are almost same but the_view_string() return with ‘views’ text.

延伸相關外掛

文章
Filter
Mastodon