這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Ads by datafeedr.com

描述

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.

You have full control over how many ads get displayed as well as their sort order.

Simple Usage (Shortcode)

[dfads params='']

Simple Usage (PHP)

<?php echo dfads(); ?>

Advanced Usage (Shortcode)

[dfads params='groups=3&limit=2']

Advanced Usage (PHP)

<?php echo dfads( 'groups=3&limit=2' ); ?>

Additional Features

  • Set impression limit – Set how many times ad should appear before being removed from display.
  • Set start date – Set the date the ad should not appear before.
  • Set end date – Set the date the ad should not appear after.
  • Shortcode – Add ads to posts, pages or Text Widget using the [dfads] shortcode.
  • PHP Function – Embed ads in your template files with dfads() function.
  • Supports caching – Impressions are counted and ads are ordered displayed randomly even if you have enabled a caching plugin. (Note: Doesn’t work if your site’s visitor has JavaScript disabled in their browser.)
  • 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 ad.
  • Ad Groups – Set up ‘ad groups’ to display different groups of ads in different places. (Example: sidebar, footer, leaderboard, 150×150, etc…)
  • No Impression Count for Admins – Enable or disable impression counting when viewing the site as an Administrator.

Video Tutorials

View the full video tutorial playlist here.

Create a new ad and display a group of ads in a widget

Display a group of ads in a post using the shortcode

Display a group of ads above a post’s content using the PHP function

Configure your ads to count impressions and order randomly even when using a caching plugin

Documents most of the parameters of a shortcode or function

螢幕截圖

  • Add a new ad
  • Configure the ad's settings
  • View a list of all of the ads you've created
  • Configure plugin's settings
  • Generate a shortcode
  • Generate PHP code
  • Add shortcode to Text widget
  • View ads on site

安裝

This section describes how to install the plugin and get it working.

  1. Upload the ads-by-datafeedrcom folder to the /wp-content/plugins/ directory
  2. Activate the Ads by datafeedr.com plugin through the ‘Plugins’ menu in WordPress
  3. Configure the plugin by going to Settings > Ads.
  4. Insert the shortcode into your posts, pages or Text widget or by adding the PHP template code to your theme’s template files.

Check out datafeedr.com for a full list of available parameters and their usages.

常見問題

Does this plugin track clicks?

No. You’ll need to use another click tracking plugin or service.

評價

2023年5月16日
I tried several plugins and finally settled on this one, among other things it works well with the site with cache.
2017年2月13日 1 reply
I have been using the plugin for years, just had a glitch when switching to a new hosting provider and after a few support emails back and forth, the issue was solved. Eric, Thanks for the great response time and help. My Banner Ads are back in business! Steve M.
2016年9月3日 2 replies
I posted a question 4 weeks ago on the forum and received no response. The plugin isn't working for us.
2016年9月3日
Works as expected. Make sure AdBlock is turned off for developing. Took me a while to figure that this might be the problem 😉
2016年9月3日
Huge thanks for this simple and easy to use plugin. Works like charm. Keep it up!
閱讀全部32個評價

貢獻者及開發者

“Ads by datafeedr.com” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Ads by datafeedr.com 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.3 – 2020/03/08

  • Updated jQuery for upgrade.

1.1.2 – 2020/12/01

  • Update for WordPress 5.6.

1.1.1 – 2020/03/11

  • Removed contextual_help filter.
  • Removed call to screen_icon().

1.1.0 – 2019/10/19

  • Updated to latest version of CMB2 after a vulnerability report was issued for previous versions of CMB2.

1.0.16 – 2019/05/06

  • Updated readme.

1.0.15 – 2019/02/19

  • Updated readme.

1.0.14 – 2018-12-28

  • Added new dfads_ad_post_content and dfads_ads_html_block filters. Thanks spatsatzis

1.0.13 – 2018-01-17

  • Updated readme.txt and added new README.md.

1.0.12 – 2017-06-02

  • Changed methods with same name as their class to proper __construct() methods.
  • Fixed undefined index issues.
  • Fixed non-static method being called statically.
  • Removed sidebar in admin interface.

1.0.11 – 2016-04-01

  • Removed some dead links from the admin page.

1.0.10

  • Fixed more undefined indexes.

1.0.9

  • Fixed undefined indexes.
  • Added “static” to static methods to meet Strict Standards.

1.0.8

  • Fixed Warning: Illegal string offset ‘dfads_enable_shortcodes_in_widgets’ Errors.