
前言介紹
- 這款 WordPress 外掛「Taro Ad Fields」是 2017-07-30 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2025-04-23,距離現在已有 11 天。
- 外掛最低要求 WordPress 5.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
tarosky | yocchi161 | takahashi_fumiki |
外掛標籤
advertisement |
內容簡介
您可以為 WordPress 主題建立廣告位置。
在每個位置上,將顯示最新的廣告欄位。
您可以管理廣告的時間表和顯示!
從主題中
在您的主題中調用動作鉤:
', '
' ); ?>
在這個位置上,最新的廣告將被顯示。
使用Taro Clockwork Post外掛,您可以讓廣告自動過期。
鉤子引數
do_action( $hook_name, $slug, $before, $after );
$hook_name:動作鉤名稱。應為taro_ad_field。
$slug:位置的別名。
$before:廣告塊之前要輸出的字符串。如果沒有廣告,則不會顯示。
$after:廣告塊之後要輸出的字符串。
從小工具中
我們還有為廣告欄位提供的小工具。小工具中將顯示指定位置的最新廣告。
設置默認位置
在您的主題中,添加 taf_default_positions 過濾器鉤子。
這些術語將被自動創建。
add_filter( 'taf_default_positions', function() {
return [
'after-header' => [
'name' => 'After Header',
'description' => 'Displayed just after header.',
],
'after-content' => [
'name' => 'After Content',
'description' => 'Displayed just after content.',
'mode' => 'iframe',
],
];
} );
默認為空數組,因此沒有默認位置。
您可以像上面的過濾器鉤子一樣向其中添加新位置。
數組的結構將如下:
[
'slug_name' => [
'name' => 'Verbose Postion Name',
'description' => 'About where will be displayed(up to you)',
'mode' => 'iframe',
],
]
如果將模式設置為 ‘iframe’,則此位置將具有 URL,並在非常簡單的 HTML 頁面中顯示廣告。
您可以從管理屏幕的位置列表中的查看鏈接中獲取 URL。
此功能非常有用,可在其他平臺上交付廣告,例如Facebook Instant Article。
原文外掛簡介
You can create ad slot for you WordPress theme.
In each position, the latest ad field will be displayed.
You can manage your advertisement’s schedule & display!
From Theme
Call action hook in your theme:
', '
', 3 ); ?>
In this place, the latest 3 ads will be displayed.
With Taro Clockwork Post plugin, you can let your ad be automatically expired.
Hook Arguments
do_action( $hook_name, $slug, $before, $after, $number );>
$hook_name: The action hook name. Always should be taro_ad_field.
$slug: Slug of position.
$before: String to be output just before ad block. If no ad exists, this won’t be displayed.
$after: String to be output just after ad block.
$number: Number of ad to be displayed. Default is 1.
$contexts: Array of contexts. Context is a taxonomy that filters ads. For more details, see our Wiki.
From Widget
We also have widget for ad field. The latest ad of specified position will be displayed in the widget.
Set Default Positions
In your theme, add filter hook for taf_default_positions.
These terms will be created automatically.
add_filter( 'taf_default_positions', function() {
return [
'after-header' => [
'name' => 'After Header',
'description' => 'Displayed just after header.',
],
'after-content' => [
'name' => 'After Content',
'description' => 'Displayed just after content.',
'mode' => 'iframe',
],
];
} );
Defaults are empty array, so no default position.
You can add new position to them with filter hook like above.
The structure of array will be like below:
[
'slug_name' => [
'name' => 'Verbose Position Name',
'description' => 'About where will be displayed(up to you)',
'mode' => 'iframe',
],
]
If you set mode as ‘iframe’, this position will have URL and display ad in very simple HTML pages.
You can get URL from view link in position list of admin screen.
This feature is useful to deliver ad in external platform like Facebook Instant Article.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Taro Ad Fields」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | trunk |
延伸相關外掛(你可能也想知道)
Auto Amazon Links – Amazon Associates Affiliate Plugin 》輕鬆展示亞馬遜聯盟聯盟鏈接, 您還在手動搜索產品並在WordPress帖子中貼上亞馬遜聯盟鏈接嗎?如果產品過時怎麼辦?使用此插件,您無需擔心,也無需煩惱進行這...。
WP125 》如果你已放棄了許多新博客使用的低收益和稍有干擾的廣告網絡,轉而直接販售廣告,你可能會對管理廣告所需的過多時間感到失望。你不僅需要尋找贊助你的博客的...。
Easy Google Adsense and Banner Ads Manager – AdsforWP 》AdsforWP 是一個針對 WordPress & AMP 所建立的 Google 廣告和 Banner 廣告外掛程式。易於使用、無限的嵌入式廣告、支援 Adsense、高級功能等等。, 公告,...。
Random Banner 》Random Banner WordPress外掛提供高度靈活性,可隨機顯示圖像橫幅、SWF橫幅和腳本廣告。, 功能, , , 支援橫幅類型:圖像、SWF、腳本廣告, , , 在圖像和SWF橫...。
Master Post Advert 》Master Post Advert 是一個簡單的 WordPress 外掛,可在文章的開始和其餘內容(在「閱讀全文」標籤位置以下)之間展示廣告。, 可用語言, , 英文, 波蘭文 (pol...。
BlogWell's Simple Image Link Widget 》你想在側邊欄中放置廣告或圖片,並希望它能連結到另一個網站。而且你希望輕鬆地實現這一點,不必在文本小工具中修改代碼。, 儘管有許多 WordPress 插件提供複...。
Banner Upload 》這個 WordPress 外掛提供一個簡單的方法,透過小工具顯示不同尺寸的橫幅廣告。, 透過這個外掛,管理者可以:, , 透過小工具上傳橫幅廣告。, 指定橫幅廣告的寬...。
MANTIS Ad Network 》若要使用此外掛程式,您必須已經被接受加入 MANTIS 網路作為發行商。, , 每次點擊都能獲得報酬, 業界最高的支付額, 完全掌握及調整顯示廣告的彈性, 。
Ads Widgets Easy 》這個小工具可以容納不同大小的圖像廣告。使用此外掛,您可以在 WordPress 小工具中創建無限數量的廣告。提供了幾個智慧選項,可以為您的需求自訂廣告。。
Simple Adblock Notice 》, 感謝 WPlift、WPDean、ShoutMeLoud 和 Themeisle 部落格的報導,謝謝你們對我們的支持。, , Simple Adblock Notice 插件會在 Adblock plus 瀏覽器擴充套件...。
Smartarget Corner Ribbon 》Corner Ribbon – 使用角落帶狀條來宣傳特別優惠, 是否有時候會有特別優惠呢?像是黑色星期五?週末優惠?或是節日活動?, 角落帶狀條會在所有頁面上向...。
Banner Slider for Advertisement 》通過在不同頁面上顯示不同位置的圖像橫幅廣告來最大化您的廣告收益的橫幅廣告。WordPress沒有任何直接動作鉤子或過濾器函數,允許您在頁眉和頁腳附近或任何好...。
Woocommerce Product Advertisement 》介紹, Woocommerce產品廣告插件可以幫助您在商店、單一產品、購物車和結帳頁面上,像廣告一樣展示所選產品。, 現在您可以通過橫幅來宣傳您的產品、優惠、交易...。
wp shortcut link and advertisement baner 》一個外掛程式,可建立一個捷徑連結,直接將您的使用者導向特定頁面、分類頁面或指定連結。。
Conditional Content 》您正在尋找一種在 WordPress 網站的頁面/文章中添加黏性內容的工具嗎?, 試試免費的 Conditional Content 外掛程式-它將幫助您插入和控制條件內容,並設置您...。