WordPress:WPMU Functions/get most active blogs

来自站长百科
Xxf3325讨论 | 贡献2008年9月26日 (五) 15:36的版本 (新页面: This is useful for getting active blogs. Please note here active blogs will be calculated based on number of posts. Naturally more posts mean more activity! Arguments are: default $nu...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

This is useful for getting active blogs.

Please note here active blogs will be calculated based on number of posts.

Naturally more posts mean more activity!

Arguments are: default $num = 10 number of results to fetch. default $display = true whether print the result or just fetch the result array.

//it will print 10 most active blogs. For manual manipulation of result just pass FALSE as second argument. 
get_most_active_blogs( $num = 10, $display = true ); 

PS. I think it would be good to have another argument to ignore certain blogs, for example my client don't want to display main blog stats here :(

--Devportals 12:53, 25 June 2008 (UTC) Cheers!