Subscribe: Posts | Comments | Email
荒野无灯weblog
荒野无灯 在《留言短信通知,何需插件?》留言
九月 10th, 2010 at 4:43 下午
我这一般留言不是很多喽。
baby_1224 在《留言短信通知,何需插件?》留言
九月 10th, 2010 at 4:24 下午
留言多的时候爪机悲剧勒…囧~
baby_1224 在《QQ企业邮箱试用》留言
九月 10th, 2010 at 4:20 下午
好像貌似申请勒一直仅仅只是绑定QQ而已…其余地方都不用它~囧…
荒野无灯 在《也折腾不用WordPress Related Posts实现相关日志》留言
九月 10th, 2010 at 12:45 下午
直接调用不行的,要自己写一个函数吧。
荒野无灯 在《Box.net 真实外链地址获取工具》留言
九月 10th, 2010 at 12:25 下午
简单点的办法:把foreach换成for然后加个计数的变量控制其输出吧
Leyond 在《QQ企业邮箱试用》留言
九月 10th, 2010 at 11:18 上午
有时间去试试看啊
Leyond 在《给WP加上无限分页》留言
九月 10th, 2010 at 11:16 上午
呵呵,回来了,我也从家里回来。这个教程不错
ylsnuha 在《也折腾不用WordPress Related Posts实现相关日志》留言
九月 10th, 2010 at 9:51 上午
请问怎样让文章下面左边显示相关日志,右边显示随机日志呢。。。因为这个代码也有随机日志的函数,怎样直接调用使用吗?
Rayee 在《Box.net 真实外链地址获取工具》留言
九月 9th, 2010 at 9:17 下午
能否通过参数控制只显示最新10条啊? 期待博主解惑。
风吟 在《QQ企业邮箱试用》留言
九月 8th, 2010 at 9:53 下午
不明真相!我完全打酱油的!
本站目前共有1846条留言通过审核:
Most Active Friends
荒野无灯 在《留言短信通知,何需插件?》留言
九月 10th, 2010 at 4:43 下午
我这一般留言不是很多喽。
baby_1224 在《留言短信通知,何需插件?》留言
九月 10th, 2010 at 4:24 下午
baby_1224 在《QQ企业邮箱试用》留言
九月 10th, 2010 at 4:20 下午
荒野无灯 在《也折腾不用WordPress Related Posts实现相关日志》留言
九月 10th, 2010 at 12:45 下午
直接调用不行的,要自己写一个函数吧。
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
$related_posts = wp_get_random_posts($limitclause);
foreach ($related_posts as $related_post )
{
$output .= '<li>';
$dateformat = get_option('date_format');
$output .= mysql2date($dateformat, $related_post->post_date) . " // ";
$output .= '<a href="'.get_permalink($related_post->ID).'" title="'.wptexturize($related_post->post_title).'">'.wptexturize($related_post->post_title).'</a>';
$output .= " (" . $related_post->comment_count . ")";
$output .= '</li>';
}
$output = '<h3>随机日志</h3><ul class="related_post">' . $output . '</ul>';
echo $output;
}
//调用 :
output_random_posts(‘LIMIT 10’);
荒野无灯 在《Box.net 真实外链地址获取工具》留言
九月 10th, 2010 at 12:25 下午
简单点的办法:把foreach换成for然后加个计数的变量控制其输出吧
Leyond 在《QQ企业邮箱试用》留言
九月 10th, 2010 at 11:18 上午
有时间去试试看啊
Leyond 在《给WP加上无限分页》留言
九月 10th, 2010 at 11:16 上午
呵呵,回来了,我也从家里回来。这个教程不错
ylsnuha 在《也折腾不用WordPress Related Posts实现相关日志》留言
九月 10th, 2010 at 9:51 上午
请问怎样让文章下面左边显示相关日志,右边显示随机日志呢。。。因为这个代码也有随机日志的函数,怎样直接调用使用吗?
Rayee 在《Box.net 真实外链地址获取工具》留言
九月 9th, 2010 at 9:17 下午
期待博主解惑。
风吟 在《QQ企业邮箱试用》留言
九月 8th, 2010 at 9:53 下午
不明真相!我完全打酱油的!