
內容簡介
這個外掛讓您可以輕鬆地獲取熱門文章以及文章的總瀏覽量。只需在查詢字串中使用 '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」文字。
外掛標籤
開發者團隊
原文外掛簡介
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.
