[WordPress] 外掛分享: Ads by datafeedr.com

首頁外掛目錄 › Ads by datafeedr.com
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
5,000+
安裝啟用
★★★★
4.3/5 分(32 則評價)
864 天前
最後更新
問題解決
WordPress 3.5+ v1.2.0 上架:2013-03-16

內容簡介

WordPress 外掛:廣告插件,可以讓您在您的網誌上新增廣告。您可以透過 shortcode 將廣告新增到文章、頁面或文字小工具中。您也可以透過在主題的樣板檔案中新增功能,將廣告新增到您的網站上。

您可以完全控制顯示幾個廣告以及它們的排序方式。

簡易使用方式(Shortcode)
[dfads params='']

簡易使用方式(PHP)
<?php echo dfads(); ?>

進階使用方式(Shortcode)
[dfads params='groups=3&limit=2']

進階使用方式(PHP)
<?php echo dfads( 'groups=3&limit=2' ); ?>

其他功能

Impression Limit 設置 – 設定廣告顯示幾次後從顯示中移除。
開始日期設置 – 設定廣告顯示的開始日期。
結束日期設置 – 設定廣告顯示的結束日期。
Shortcode – 使用 [dfads] shortcode 可將廣告新增到文章、頁面或文字小工具中。
PHP 函式 – 在您的樣板檔案中使用 dfads() 函式嵌入廣告。
支援快取 – 即使您已啟用快取外掛,印象仍會計算,並且廣告會按隨機順序顯示。(注意:若您的網站訪客在他們的瀏覽器中停用 JavaScript,此功能將不起作用。)
支援所有廣告類型 – 新增 Google Adsense、橫幅、圖片、文字、內部廣告、影片等。如果您可以在文章中新增它,您就可以將它作為廣告新增。
廣告群組 – 設置「廣告群組」來在不同的位置顯示不同的廣告群組。(例如:側邊欄、頁底、橫幅、150×150 等)
管理員無印象計數 – 啟用或停用在管理員模式下查看站點時的印象計數。

教學影片

請在此觀看完整教學影片播放清單.

新增一則廣告並在小工具中顯示一組廣告

使用 shortcode 在文章中顯示一組廣告

使用 PHP 函式在文章內容上方顯示一組廣告

配置廣告以進行印象計數和隨機排序,即使在使用快取外掛時也可以

文件大部分 shortcode 或函數的參數

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.
Important
As of version 1.2.0, all custom callback functions (ie. callback_function) need to be returned by the dfads_allowed_callback_functions() function. To do this, add your allowed custom callback functions like this:
`

add_filter( ‘dfads_allowed_callback_functions’, function ( array $functions ) {
$functions[] = ‘my_first_custom_callback_function’;
$functions[] = ‘my_second_custom_callback_function’;
return $functions;

} );
`

Simple Usage (Shortcode)
[dfads params='']

Simple Usage (PHP)

Advanced Usage (Shortcode)
[dfads params='groups=3&limit=2']

Advanced Usage (PHP)

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon