WordPress:WPMU Functions/get most active blogs

来自站长百科
跳转至: 导航、​ 搜索

This is useful for getting active blogs.

这个函数有利于得到active blogs。

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

请注意这里的active blogs根据文章数目计算的。

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 ); 


default $num = 取回10个结果。 default $display = 不管输出结果或者取回结果数目,都是正确的。

//会输出10个最活跃的博客。要动手操作结果,只要将FALSE传递为第二个参数即可。
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!


--Devportals2008年6月25日, 12:53 (格林尼治标准时间) Cheers!

开心起来!