随机轮播广告插件 for worepress

很久没安装和使用wordpress插件了,blog上的wordpress的栏目都荒废了。最近因为更换广告才又去找了一个广告随机轮播插件来装,顺便推荐给大家,当然你如果有时间也可以使用一段JS代码来实现。

来源datafeedr Random / Rotating Ads Plugin for WordPress  

作用:在页面同一个位置可以随机轮播显示你的多个广告

支持:wordpress 2.5以上版本

下载Download Plugin (v1.1) 

安装

1.首先,下载并解压缩;

2.将/wp-content/plugins/datafeedr-ads.php上传到WordPress 插件目录wp-content\plugins\

3.将 /wp-content/ads/上传到/wp-content/目录

4.激活插件

5.在ads目录生成txt文件,将你的广告代码写入到txt文件中,多个广告请用”|” 间隔(你可以看它提供的文件范例)

6.在对应的模板位置写入调用代码,例如你的广告txt文件为ads_468×60.txt,则按下述代码写入你需要显示的位置:

<?php if (function_exists(‘dfrad’)) { echo dfrad(‘ads_468×60′); } ?>

相关日志

Post a Comment

Your email is never published nor shared. Required fields are marked *

Type your comment out: