이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Taro Ad Fields

설명

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:

<?php do_action( 'taro_ad_field', 'after-header', '<div class="after-header">', '</div>' ); ?>

In this place, the latest ad 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 );
  1. $hook_name: The action hook name. Always should be taro_ad_field.
  2. $slug: Slug of position.
  3. $before: String to be output just before ad block. If no ad exists, this won’t be displayed.
  4. $after: String to be output just after ad block.

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 Postion 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.

설치

  1. Upload the plugin files to the /wp-content/plugins/taro-ad-fields directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to Ad Field > Position and create positons. If you set default positions with filters, they will be automatically generated.
  4. Register ad posions. The published fields will be displayed.

FAQ

Installation Instructions
  1. Upload the plugin files to the /wp-content/plugins/taro-ad-fields directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to Ad Field > Position and create positons. If you set default positions with filters, they will be automatically generated.
  4. Register ad posions. The published fields will be displayed.
How to Contribute

We host our code on Github, so feel free to send PR or issues.

Is there any vulnerability?

As far as we konw, NO. But nothing is perfect.
This plugin allows you to save Javascript like Google Adsense code,
so please be careful about who can edit your ad.
You can customize the capability for ad fields by hooking taf_post_type_args filter.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Taro Ad Fields”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Taro Ad Fields”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Taro Ad Fields”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.0

  • Add iframe feature. Now you can provide ad field as iframe ad container. e.g. Facebook Instant Article.

1.0.0

  • First Release.