The Ads plugin allows you to add advertisements to your blog.
借助广告插件,您可以将广告添加到博客中。
You can add advertisements to your posts, pages or Text Widgets via the shortcode.
您可以通过简码将广告添加到帖子,页面或文本小部件中。
You can also add ads to your site by adding a function to your theme’s template files.
您还可以通过在主题的模板文件中添加功能来向网站添加广告。 p>
You have full control over how many ads get displayed as well as their sort order.
您完全可以控制显示多少广告及其排序顺序。 p>
src='https://www.youtube.com/embed/tPL8ND0nh4o?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/tPL8ND0nh4o?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Simple Usage (Shortcode)
简单用法(短代码) h4>
[dfads params=''] [dfads params ='']
code> pre>
Simple Usage (PHP)
简单用法(PHP) h4>
<?php echo dfads(); ?>
?>
code> pre>
Advanced Usage (Shortcode)
高级用法(短代码) h4>
[dfads params='groups=3&limit=2'] [dfads params ='groups = 3&limit = 2']
code> pre>
Advanced Usage (PHP)
高级用法(PHP) h4>
<?php echo dfads('groups = 3&limit = 2'); ?>
?>
code> pre>
Additional Features
其他功能 h4>
- Set impression limit – Set how many times ad should appear before being removed from display.
- 设置展示次数限制 strong> –设置从展示广告中删除广告之前应显示的次数。 li>
- Set start date – Set the date the ad should not appear before.
- 设置开始日期 strong> –设置广告不应出现的日期。 li>
- Set end date – Set the date the ad should not appear after.
- 设置结束日期 strong> –设置广告不应再出现的日期。 li>
- Shortcode – Add ads to posts, pages or Text Widget using the [dfads] shortcode.
- 简码 strong> –使用[dfads]简码将广告添加到帖子,页面或文本小部件中。 li>
- PHP Function – Embed ads in your template files with dfads() function.
- PHP函数 strong> –使用dfads()函数将广告嵌入模板文件中。 li>
- Supports caching – Impressions are counted and ads are ordered displayed randomly even if you have enabled a caching plugin.
- 支持缓存 strong> –即使启用了缓存插件,系统也会对印象数进行计数并随机显示广告。
(Note: Doesn’t work if your site’s visitor has JavaScript disabled in their browser.)
(注意:如果您网站的访问者在其浏览器中禁用了JavaScript,则将无法使用。 em>) li>- Supports All Types of Ads – Add Google Adsense, banners, images, text, in-house ads, videos, etc… If you can add it to a Post, you can add it as an
- 支持所有类型的广告 strong> –添加Google Adsense,横幅,图像,文本,内部广告,视频等…如果可以将其添加到帖子中,则可以将其添加为
ad.
广告。 li>
- Ad Groups – Set up ‘ad groups’ to display different groups of ads in different places.
- 广告组 strong> –设置“广告组”以在不同的位置展示不同的广告组。
(Example: sidebar, footer, leaderboard, 150×150, etc…)
(示例:侧边栏,页脚,页首横幅,150×150等... em>) li>- No Impression Count for Admins – Enable or disable impression counting when viewing the site as an Administrator.
- 没有管理员的印象计数 strong> –以管理员身份查看网站时启用或禁用印象计数。 li>
ul>
Video Tutorials
视频教程 h3>
View the full video tutorial playlist 查看完整的视频教程播放列表here
.
这里
。 p>
Create a new ad and display a group of ads in a widget
创建一个新广告并在小部件中显示一组广告 h4>
src='https://www.youtube.com/embed/tPL8ND0nh4o?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/tPL8ND0nh4o?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Display a group of ads in a post using the shortcode
使用简码在帖子中显示一组广告 h4>
src='https://www.youtube.com/embed/jdeB_HjkYJU?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/jdeB_HjkYJU?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Display a group of ads above a post’s content using the PHP function
使用PHP函数在帖子内容上方显示一组广告 h4>
src='https://www.youtube.com/embed/eQR5HCEAvYQ?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/eQR5HCEAvYQ?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Configure your ads to count impressions and order randomly even when using a caching plugin
将您的广告配置为即使在使用缓存插件时也可以随机计算展示次数和排序 h4>
src='https://www.youtube.com/embed/M3v_1vtnh9c?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/M3v_1vtnh9c?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
Documents most of the parameters of a shortcode or function
记录简码或函数的大多数参数 h4>
src='https://www.youtube.com/embed/MU87O6J9zSo?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/MU87O6J9zSo?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>