Title: Ad King Pro
Author: Ash Durham
Published: <strong>2013 年 5 月 7 日</strong>
Last modified: 2016 年 4 月 6 日

---

搜尋外掛

![](https://ps.w.org/adkingpro/assets/banner-772x250.jpg?rev=709553)

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

![](https://ps.w.org/adkingpro/assets/icon-256x256.png?rev=1060727)

# Ad King Pro

 由 [Ash Durham](https://profiles.wordpress.org/ashdurham/) 開發

[下載](https://downloads.wordpress.org/plugin/adkingpro.2.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/adkingpro/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/adkingpro/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/adkingpro/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/adkingpro/#developers)

 [技術支援](https://wordpress.org/support/plugin/adkingpro/)

## 外掛說明

—

Stay up-to-date with the latest by following [@kingproplugins on Twitter](http://twitter.com/kingproplugins),
[KingProPlugins on Facebook](http://facebook.com/kingproplugins) or [King Pro Plugins on Google+](https://plus.google.com/b/101488033905569308183/101488033905569308183/about)

—

[Ad King Pro](http://kingpro.me/plugins/ad-king-pro/) allows you to easily manage
and track, via Google Analytics, your on-site advertising. Upload your banner/flash
banner/adsense code/text, add the link its to go to then
 your ready to go. Set 
it to start and end at a certain time if needed. Ad King Pro can be placed into 
any page or post by using the shortcode. It can also be placed directly into theme
files if need be. Create types and assign multiple banners to randomly show one 
on every page refresh, define a category to display in a specific spot, even define
a particular ad to display. Want to show multiple on a single page, no problem, 
change the ‘render’ attribute to the amount you are after. Want those to then rotate
on the spot? Got you covered. Turn the ‘rotate’ attribute to ‘true’ and your ads
will fade between each other.

#### Features

 * Easily manage banners globally
 * Track impressions and clicks in your Google Analytics account
 * Supports images, flash, adsense, HTML iframe and text as an “advert”
 * Schedule start and end times
 * Shortcode available
 * Display options include single display, randomised display and rotate display

#### Translations

Thanks to the team at [Web Hosting Hub](http://www.webhostinghub.com) for providing
the two translations for this plugin:
 – Spanish – Serbian

—

If you have any suggestions or would like to see a feature in the plugin, please
let me know in the support forum.

Any issues you are having, I’d also love to know, so again, please let me know using
the support forum.

—

[Check out the King Pro Plugins range](http://kingpro.me/)

### How To Use

#### Use Shortcodes

Shortcodes can be used in any page or post on your site. By default:
 [adkingpro]
is defaulting to the advert type ‘Sidebar’ and randomly chosing from that. You can
define your own advert type and display the adverts attached to that type by: [adkingpro
type=”your-advert-type-slug”] Alternatively, you can display a single advert by 
entering its “Banner ID” which can be found in the table under the Adverts section:[
adkingpro banner=”{banner_id}”] Have a select few adverts that you’d like to show?
No problem, just specify the ids separated by commas: [adkingpro banner=”{banner_id1},{
banner_id2}”] Want to output a few adverts at once? Use the ‘render’ option in the
shortcode: [adkingpro banner=”{banner_id1}, {banner_id2}” render=’2′] [adkingpro
type=”your-advert-type-slug” render=’2′] Only have a small space and what a few 
adverts to display? Turn on the auto rotating slideshow!: [adkingpro type=”your-
advert-type-slug” rotate=’true’] There are also some settings you can play with 
to get it just right: – Effect: “fade | slideLeft | none” Default – fade – Pause
Speed: “Time in ms” Default – 5000 (5s) – Change Speed: “Time in ms” Default – 600(
0.6s)

Use one or all of these settings:
 [adkingpro rotate=’true’ effect=”fade” speed=”
5000″ changespeed=”600″] To add this into a template, just use the “do_shortcode”
function: <?php if (function_exists(‘adkingpro_func’)) echo do_shortcode(“[adkingpro]”);?
>

—

Having Trouble? Get support either on the support forums here or at [@kingproplugins on Twitter](http://twitter.com/kingproplugins),
[KingProPlugins on Facebook](http://facebook.com/kingproplugins) or [King Pro Plugins on Google+](https://plus.google.com/b/101488033905569308183/101488033905569308183/about)

—

## 螢幕擷圖

 * [[
 * Edit screen with all the options you’ll ever need
 * [[
 * Settings screen ensuring your system is set up for tracking
 * [[
 * [[
 * [[

## 安裝方式

 1. Download and unzip the zip file onto your computer
 2. Upload the ‘adkingpro’ folder into the `/wp-content/plugins/` directory (alternatively,
    install the plugin from the plugin directory within the admin)
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Create your first advert within the ‘Advert’ section of the admin (Make sure you
    assign it to a type)
 5. Within the WYSIWYG editor, place the short code ‘[adkingpro]’ or within the code,
    <?php if (function_exists(‘adkingpro_func’)) echo do_shortcode(‘[adkingpro’]); ?
    >

—

Having Trouble? Get support either on the support forums here or at [@kingproplugins on Twitter](http://twitter.com/kingproplugins),
[KingProPlugins on Facebook](http://facebook.com/kingproplugins) or [King Pro Plugins on Google+](https://plus.google.com/b/101488033905569308183/101488033905569308183/about)

—

## 常見問題集

  After activating this plugin, my site has broken! Why?

Nine times out of ten it will be due to your own scripts being added above the standard
area where all the plugins are included. If you move your javascript files below
the function, “wp_head()” in the “header.php” file of your theme, it should fix 
your problem.

  I want to track clicks on a banner that scrolls to or opens a flyout div on my
site. Is it possible?

Yes. Enter a ‘#’ in as the URL for the banner when setting it up. At output, the
banner is given a number of classes to allow for styling, one being “banner{banner_id}”,
where you would replace the “{banner_id}” for the number in the required adverts
class. Use this in a jquery click event and prevent the default action of the click
to make it do the action you require

  I have created an Advert and added the shortcode onto my page but nothing shows
up. Why?

Be sure that you have assigned your advert to an “Advert Type”. One called sidebar
is automatically created for you when you install the plugin. It is this type that
is pulled automatically in the default shortcode. Also in some cases you don’t need
to wrap the type in quotes (eg [adkingpro type=sidebar]).

—

Have a question thats not listed? Get support either on the support forums here 
or at [@kingproplugins on Twitter](http://twitter.com/kingproplugins), [KingProPlugins on Facebook](http://facebook.com/kingproplugins)
or [King Pro Plugins on Google+](https://plus.google.com/b/101488033905569308183/101488033905569308183/about)

—

## 使用者評論

![](https://secure.gravatar.com/avatar/2cc01cded85ccb68e9c51ef8ef93653296d83d5155a08dd5149b24cf98f5c78c?
s=60&d=retro&r=g)

### 󠀁[no option of ” hide ads in this post ” !](https://wordpress.org/support/topic/no-option-of-hide-ads-in-this-post/)󠁿

 [acharknews](https://profiles.wordpress.org/acharknews/) 2017 年 2 月 24 日

no option of ” hide ads in this post “

![](https://secure.gravatar.com/avatar/941a0de459380654f7b1e22fc118b80474c2d7fbffe23df294df5162a9dadb39?
s=60&d=retro&r=g)

### 󠀁[Multisite](https://wordpress.org/support/topic/multisite-414/)󠁿

 [zockorai](https://profiles.wordpress.org/zockorai/) 2017 年 2 月 7 日

Seems not to work on multisite…

![](https://secure.gravatar.com/avatar/5bc3708187a2aefb72492042769b993128ee245504fa7061716095ee02e929e2?
s=60&d=retro&r=g)

### 󠀁[No more logging in](https://wordpress.org/support/topic/no-more-logging-in-2/)󠁿

 [marcel799](https://profiles.wordpress.org/marcel799/) 2017 年 2 月 7 日

After i deleted the plugin directory i was able to access admin dashboard again.

![](https://secure.gravatar.com/avatar/078365674b1af5e7cad84903a1d529a7d3a39c365833901ceb9fceaa3a7e0c80?
s=60&d=retro&r=g)

### 󠀁[MySQL breaks down!](https://wordpress.org/support/topic/mysql-breaks-down/)󠁿

 [SerchaOO](https://profiles.wordpress.org/serchaoo/) 2017 年 2 月 7 日

MySQL breaks down!

![](https://secure.gravatar.com/avatar/fb5efc00c3c11e23daa58a3516c486b5a35a85d966cb683f302f6151f3138f52?
s=60&d=retro&r=g)

### 󠀁[destroys my installation](https://wordpress.org/support/topic/destroys-my-installation/)󠁿

 [pressworder77](https://profiles.wordpress.org/pressworder77/) 2017 年 2 月 7 日

Why can no one log in anymore?

![](https://secure.gravatar.com/avatar/8908b84e0ece348f7baaab66abbc0358484ba2e69c3dea71bc214e781f82fa72?
s=60&d=retro&r=g)

### 󠀁[very slow](https://wordpress.org/support/topic/very-slow-10/)󠁿

 [shirter](https://profiles.wordpress.org/shirter/) 2017 年 2 月 7 日

it’s very slow…

 [ 閱讀全部 19 則使用者評論 ](https://wordpress.org/support/plugin/adkingpro/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Ad King Pro〉的開發相關工作。

參與者

 *   [ Ash Durham ](https://profiles.wordpress.org/ashdurham/)

[將〈Ad King Pro〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/adkingpro)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/adkingpro/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/adkingpro/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/adkingpro/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/adkingpro/)。

## 變更記錄

#### 2.0.1

 * Code refresh
 * Removal of local tracking
 * Cleaning up the admin
 * Auto detection of GA install on site

#### 1.9.17

 * JS fix from preventing a JS error on GA click events

#### 1.9.16

 * Updates for 4.0
 * Option to remove all stored data on delete
 * Fix to widget banner ID dropdown

#### 1.9.15

 * Fix to widget output when using single banner calls and having the right advert
   type added as class

#### 1.9.14

 * Update settings on custom post types to prevent URLs being created
 * Enable or disable tracking or impressions and clicks
 * Added ability to add rollover images

#### 1.9.13

 * Fix to permissions which cause bbPress to stop working with Ad King Pro
 * Fix to shortcode builder code changing the post ID on the edit screen
 * Addition of GA integration functionality

#### 1.9.12

 * Addition of default settings for creating new adverts
 * CSS update for latest version of WP
 * Addition of shortcode builder in edit screen
 * Addition of some extra columns to advert list

#### 1.9.11

 * Serbian Translation included thanks to Borisa @ WebHostingHub.com

#### 1.9.10

 * Fix to report PDF when generating for text advert

#### 1.9.9

 * Updated Spanish translation

#### 1.9.8

 * Spanish Translation included thanks to WebHostingHub.com
 * Update to KPP section with release of new plugin
 * Created local copy of Font Awesome as requested by WordPress
 * Addition of HTML5 Banner option

#### 1.9.7

 * Text updated to allow for internationalisation – if you would like to submit 
   your translation, please email the compiled language files to plugins@kingpro.
   me

#### 1.9.6

 * Update to user role hiding of admin pages

#### 1.9.5

 * Major styling update to settings page
 * Update to KPP Page styling and layout

#### 1.9.4

 * Update to KPP page with new plugin details
 * Removal of forced role
 * Added error check for missing capabilities

#### 1.9.3

 * Update to datepicker class to avoid conflict
 * Update to admin enqueue function to only include on required pages
 * Addition of authorised role option in settings

#### 1.9.2

 * Updated details including new release of King Pro Plugin
 * Changed location of settings page in menu.

#### 1.9.1

 * Removal of expiry option on all post types except Ad King Pro
 * Addition of the ability to add nofollow to links and control target

#### 1.9.0

 * Fixed up some CSS in the admin
 * Added field to add an alt tag to the image advert output

#### 1.8.2

 * Small fix to install/update code
 * Update to links to point to new website

#### 1.8.1

 * Fix to shortcode output when not specifiying a render value
 * Cosmetic images in admin

#### 1.8

 * Fix to the reporting cost figures not rendering on the detailed summery page
 * Addition of functionality to render multiple adverts at 1 time
 * Addition of functionality to turn the multiple adverts output into a rotating
   banner
 * Addition of tracking data removal on edit screen of advert

#### 1.7.1

 * Removal of left over echo in output

#### 1.7

 * Added option to set a size to an advert type, generating that image size from
   the images you upload.
 * Added support for lack of ‘post-thumbnail’ support
 * Added ‘text’ media type

#### 1.6.1

 * Issue with CSV and PDF generation fixed

#### 1.6

 * Addition of expiry date/time functionality

#### 1.5.1

 * Adding missing functionality for flash upload button

#### 1.5

 * Added support for flash and Google AdSense banners

#### 1.4.2

 * Update compatible with 3.5.2

#### 1.4.1

 * Fix to install error

#### 1.4

 * Widget option added

#### 1.3

 * Update to how admin scripts are included

#### 1.2

 * Addition of revenue allocation and calculation
 * Addition of PDF themes
 * Fix to week starts dropdown

#### 1.1

 * Addition of impressions
 * Addition of impression settings
 * Update to settings page
 * Update to PDF output – display of banner refined

#### 1.0

 * Initial

## 中繼資料

 *  版本 **2.0.1**
 *  最後更新 **10 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/adkingpro/)
 * 標籤:
 * [ad](https://tw.wordpress.org/plugins/tags/ad/)[ads](https://tw.wordpress.org/plugins/tags/ads/)
   [advert](https://tw.wordpress.org/plugins/tags/advert/)[advertising](https://tw.wordpress.org/plugins/tags/advertising/)
   [adverts](https://tw.wordpress.org/plugins/tags/adverts/)
 *  [進階檢視](https://tw.wordpress.org/plugins/adkingpro/advanced/)

## 評分

 2.8 星，滿分為 5 星

 *  [  6 個 5 星使用者評論     ](https://wordpress.org/support/plugin/adkingpro/reviews/?filter=5)
 *  [  3 個 4 星使用者評論     ](https://wordpress.org/support/plugin/adkingpro/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/adkingpro/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/adkingpro/reviews/?filter=2)
 *  [  9 個 1 星使用者評論     ](https://wordpress.org/support/plugin/adkingpro/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/adkingpro/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/adkingpro/reviews/)

## 參與者

 *   [ Ash Durham ](https://profiles.wordpress.org/ashdurham/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/adkingpro/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://durham.net.au/donate/)