WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Ad Inserter

Insert any HTML/Javascript/PHP code into WordPress. Perfect for AdSense or contextual Amazon ads. 16 code blocks, many display options.

A simple solution to insert any ad code into WordPress. Perfect for AdSense or contextual Amazon ads. Simply enter any HTML/Javascript/PHP code and select where and how you want to display it (including widgets).

Display Options:

  • Display ad Before Content (before post or page text)
  • Display ad Before Selected Paragraph (0 means random paragraph):
  • Display ad After Content (after post or page text)
  • Display ad Before Title (does not work with all themes)
  • Display ad Before Excerpt
  • Display ad After Excerpt
  • Ad as a Widget
  • Manual - Insert {adinserter AD_NUMBER} or {adinserter AD_NAME} into post or page HTML code to display ad with AD_NAME name or number AD_NUMBER at this position
  • PHP function call <?php echo adinserter (AD_NUMBER); ?> - Insert code block AD_NUMBER at any position in template file

Additional Options:

  • Use {category}, {short_category}, {title}, {short_title}, {tag}, {smart_tag} or {search_query} tags to insert actual post data into code blocks
  • To rotate different ad versions separate them with |rotate|

Alignment:

  • No Wrapping (leaves ad code as it is, otherwise it is wrapped by a div)
  • None
  • Align Left
  • Align Right
  • Center
  • Float Left
  • Float Right

PHP processing: Enabled or Disabled

Do not display ad if the number of paragraphs is below limit (used only for position Before Selected Paragraph).

Display ad only for posts published after N days.

Do not display ads to users from certain referrers (domains) e.g technorati.com, facebook.com,... (black list) or display ads only for certain referrers (white list). Leave referrers list empty and set to Black list to show ads for all referrers.

Do not display ads in certain caregories e.g sport, news, science,... (black list) or display ads only in certain categories (white list). Leave category list empty and set to Black list to show ads in all categories.

For all display positions you can also define WordPress page types where the ads can be displayed:

  • Posts
  • Pages

For display positions Before Excerpt, After Excerpt, Before Title and Widget you can select additional pages where the ads can be displayed:

  • Homepage
  • Category pages
  • Search Pages
  • Archive pages

You can also disable ads in certain posts. For example, to disable ad block 1 with name Test Block in post put the following HTML code within post or page code:

<!-- disable adinserter 1 -->

or

<!-- disable adinserter Test Block -->

Ad Inserter is perfect for displaying AdSense or Amazon ads. It can also be used to display various versions of AdSense ads using channels to test which format or color combination performs best.

Requires: 3.0 or higher
Compatible up to: 3.8.3
Last Updated: 2014-3-18
Downloads: 50,343

Ratings

4 stars
4.6 out of 5 stars

Support

4 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,2,2
100,1,1 100,3,3
100,2,2
67,3,2
100,4,4
100,1,1 100,1,1 100,1,1
100,1,1
100,2,2 100,1,1
100,1,1
100,1,1
100,2,2
100,7,7
100,2,2
100,4,4
100,1,1
100,1,1
100,1,1
100,1,1 100,2,2 100,1,1 100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,2,2
100,1,1
100,1,1