We'll create fresh WordPress site with Taro Ad Fields installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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!
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 );
taro_ad_field
.We also have widget for ad field. The latest ad of specified position will be displayed in the widget.
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.