曾经桑林志写过一篇把google广告放在第一篇文章后面,但发现那种方法页面载入的时候广告会发颤
,换了另一种方法:
编辑模版的index.php,主循环前面加上
"showadsense ="后面的数字写几,广告就在第几篇po后面显示,这个自己把握好.
然后在endwhile前面加上
保存,搞定.
个人感觉这种方法比较合适,大家试试

编辑模版的index.php,主循环前面加上
<?php $postnum = 1; $showadsense = 7; ?>
"showadsense ="后面的数字写几,广告就在第几篇po后面显示,这个自己把握好.
然后在endwhile前面加上
<?php if ($postnum == $showadsense) { ?> ... adsense的代码 ... <?php } $postnum++; ?>
保存,搞定.

个人感觉这种方法比较合适,大家试试

评论