在blog中加入adsense google相关搜索

续前面一个帖子:在WordPress中加入Y!Q相关搜索,也可以依葫芦画瓢弄个adsense google相关搜索。很简单只需将 google adsense 生成的搜索代码中这一行:

<input type=”text” name=”q” size=”31″ maxlength=”255″ value=”"></input>

换成:

<input type=”text” name=”q” size=”31″ maxlength=”255″ value=”<?php the_title(); ?>”></input>

但是修改代码是不符合 Adsense Program Policies的,所以如果真得在意 adsense,就不要这样做。

MT 中实现起来也很简单,只需设 value=”<$MTEntryTitle$>” 就可以了我想。

如果有安装tag插件,把value设成tags值,可以做得更好。

“在blog中加入adsense google相关搜索” 有 5 个回响

  1. 1
    hedgehog 说:

    才添加了Y!Q相关搜索
    又来了adsense google相关搜索
    真是忙不过来

  2. 2
    Leo Blog » WordPress插件搜集(转帖) 说:

    [...] 在blog中加入adsense google相关搜索 [...]

  3. 3
    五音不全 - WordPress资源 说:

    [...] 在blog中加入adsense google相关搜索 [...]

  4. 4
    Badblue » WORDPRESS插件资讯 说:

    [...] 在blog中加入adsense google相关搜索 [...]

  5. 5
    Juice bar » WordPress插件搜集 说:

    [...] 在blog中加入adsense google相关搜索 [...]

敬请留言

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>