WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Ad Inserter

Insert any advert or code into WordPress. Perfect for all kinds of banners and ads including AdSense and Amazon. Powerful features, simple use.

2.1.4

  • Paragraph counting restored to standard functions
  • Added option to select paragraph counting functions with multibyte support (unicode characters)
  • Fixed bug for wrong paragraph counting in posts with blockquote sections in some cases
  • Fixed bug for wrong measuring of plugin processing time in some cases
  • Fixed bug for "Empty delimiter" warning

2.1.3

  • Added support for counting paragraphs with multibyte (unicode) characters
  • Fixed bug for class name not saved
  • Few minor bug fixes and cosmetic changes

2.1.2

  • Fixed bug for disabled settings page on multisite blogs

2.1.1

  • Changes for compatibility with PHP 7.1
  • Automatic rename of old pro plugin slug (Pro only)
  • Added support for additional Pro features (Pro only)
  • Few bug fixes and cosmetic changes

2.1.0

  • Added support to insert ads in Ajax requests (e.g. in infinite scroll)
  • Added support to not include block classes when class name is empty
  • Added sticky positions (Pro only)
  • Bug fix for minimum user role not taken into account for exceptions list
  • Bug fix for IP database update cron event (Pro only)

2.0.14

  • Fixed issue for responsive ads not displayed when using Left, Center or Right alignment

2.0.13

  • Added icons for Automatic insertion and alignment
  • Automatic insertion None changed to Disabled
  • Alignment None changed to Default
  • Changed database option data for Automatic insertion and Alignment settings
  • Improved CSS 3 code for Left, Center and Right alignment
  • Click on CSS code starts editing
  • Page/Post exceptions listed in debug output
  • Different plugin slug for Pro version
  • Few minor bug fixes and cosmetic changes

2.0.12

  • Bug fix for page/post exceptions list

2.0.11

  • Bug fix for settings page not loading

2.0.10

  • Added option to insert ads between posts on blog pages
  • Added option to check and manage post/page exceptions for each block
  • Added option to check and manage all post/page exceptions (Pro only)
  • Added option for multisite installations to disable PHP processing on sub-sites (Pro only)
  • Added license status notifications (Pro only)

2.0.9

  • Added support for uppercase {country_ISO2} and lowercase {country_iso2} tag (Pro only)
  • Removed inclusion of dummy css and js file
  • Bug fix: Client-side dynamic blocks were not enabled if not using W3 Total Cache

2.0.8

  • Added support for client-side rotation (works with caching)
  • Added support for server-side rotation with W3 Total Cache
  • Added support for client-side country detection (works with caching, Pro only)
  • Added support for server-side country detection with W3 Total Cache (Pro only)
  • Added debugging functions to measure plugin processing time
  • Added option to black/white-list IP addresses (Pro only)
  • Added option for fallback code when scheduling between dates expires (Pro only)
  • On multisite installations Ad Inserter debug menu item on sites is available only if settings page is enabled
  • Added option for multisite installations to use Ad Inserter settings of main site for all blogs
  • Added flags to country list (Pro only)
  • Bug fix: Code preview did not work if WordPress was installed in a folder
  • Few minor bug fixes and cosmetic changes

2.0.7

  • Delayed display moved to Misc group
  • Added option for scheduling to insert code only between specified dates (Pro only)
  • Added option for Geo targeting (Pro only)
  • Few minor bug fixes and cosmetic changes

2.0.6

  • Added support to filter subpages created by the <!--nextpage--> tag
  • Added option to import block name (Pro only)
  • Cookie deleted only when it exists and debugging is disabled
  • Few minor bug fixes

2.0.5

  • Cookie created only when debugging is enabled
  • Few minor bug fixes

2.0.4

  • Bug fix: Cursor position always at the end of block name
  • State of debugging functions saved to cookie
  • Few minor bug fixes

2.0.3

  • Debugging functions in admin toolbar available only for administrators
  • Added option to hide debugging functions in admin toolbar
  • Added shortcode for debugger
  • Few minor bug fixes

2.0.2

  • Changed javascript version check to get plugin version from the HTML page
  • Added warning if old cached version of CSS file is loaded on the settings page
  • Added warning if version query parameter for js/css files is removed due to inappropriate caching

2.0.1

  • Bug fix: Shortcodes called by name were not displayed

2.0.0

  • Redesigned user interface
  • Added many debugging tools for easier troubleshooting
  • New feature: Code preview tool with visual CSS editor
  • New feature: Label inserted blocks
  • New feature: Show available positions for automatic insertion
  • New feature: Show HTML tags in posts/static pages
  • New feature: Log Ad Inserter processing
  • Improved loading speed of the settings page
  • Improved block insertion processing speed
  • Added support to avoid inserion near images, headers and other elements
  • Added option to avoid insertion in feeds
  • Added option to display code blocks only to administrators
  • Added option for publishig date check for display positions Before/After Content
  • Added option for server-side device check for header and footer code
  • Added option for maximum page/post words
  • Added option for maximum paragraph words
  • Added option to black/white-list post IDs
  • Added option to black/white-list url query parameters
  • Added warning if the settings page is blocked by ad blocker
  • Added warning if old cached version of javascript is loaded on the settings page
  • Added support for multisite installations to disable settings, widgets and exceptions on network sites (Pro only)
  • Block names can be edited by clicking on the name
  • Filters now work also on posts and single pages
  • CSS code for client-side detection moved to inline CSS
  • Bug fix: Minimum user roles for exception editing was not calculated properly
  • Bug fix: Server-side detection checkbox was not saved properly
  • Many other minor bug fixes, code improvements and cosmetic changes

1.7.0

  • Bug fix: Shortcodes did not ignore post/static page exceptions
  • Slightly redesigned user interface
  • Excerpt/Post number(s) renamed to Filter as it now works on all display positions
  • Widget setting removed from Automatic display to Manual display section
  • Added support to disable widgets (standalone checkbox in Manual display)
  • Added call counter/filter for widgets
  • Added support to edit CSS for predefined styles
  • Few other minor bug fixes, code improvements and cosmetic changes

1.6.7

  • Bug fix: Block code textarea was not escaped
  • Added checks for page types for shortcodes
  • Added support for Before/After Post position call counter/filter
  • Few minor cosmetic changes

1.6.6

  • Bug fix: Display on Homepage and other blog pages might get disabled - important if you were using PHP function call or shortcode (import of settings from 1.6.4)
  • Few minor cosmetic changes
  • Requirements changed to WordPress 4.0 or newer
  • Added initial support for Pro version

1.6.5

  • Fixed bug: Wrong counting of max insertions
  • Change: display position Before Title was renamed to Before Post
  • Added support for display position After Post
  • Added support for posts with no <p> tags (paragraphs separated with \r\n\r\n characters)
  • Added support for paragraph processing on homepage, category, archive and search pages
  • Added support for custom viewports
  • Added support for PHP function call counter
  • Added support to disable code block on error 404 pages
  • Added support to debug paragraph tags

1.6.4

  • Fixed bug: For shortcodes in posts the url was not checked
  • Optimizations for device detection

1.6.3

  • Removed deprecated code (fixes PHP 7 deprecated warnings)
  • Added support for paragraphs with div and other HTML tags (h1, h2, h3,...)

1.6.2

  • Removed deprecated code (fixes PHP Fatal error Call to a member function get_display_type)
  • Added support to change plugin processing priority

1.6.1

  • Fixed bug: For shortcodes in posts the date was not checked
  • Fixed error with some templates "Call to undefined method is_main_query()"
  • Added support for minumum number of page/post words for Before/After content display option
  • Added support for {author} and {author_name} tags

1.6.0

  • Added support for client-side device detection
  • Many code improvements
  • Improved plugin processing speed
  • Removed support for deprecated tags for manual insertion {adinserter n}
  • Few minor bug fixes

1.5.8

  • Fixed notice "Undefined index: adinserter_selected_block_" when saving page or post

1.5.7

  • Fixed notice "has_cap was called with an argument that is deprecated since version 2.0!"
  • Few minor bug fixes and code improvements
  • Added support to blacklist or whitelist url patterns: /url-start*. url-pattern, *url-end
  • Added support to define minimum number of words in paragraphs
  • Added support to define minimum user role for page/post Ad Inserter exceptions editing
  • Added support to limit insertions of individual code blocks
  • Added support to filter direct visits (no referer)

1.5.6

  • Fixed Security Vulnerability: Plugin was vulnerable to Cross-Site Scripting (XSS)
  • Few bug fixes and code improvements

1.5.5

  • Few bug fixes and code improvements
  • Added support to export and import all Ad Inserter settings

1.5.4

  • Many code optimizations and cosmetic changes
  • Header and Footer code blocks moved to settings tab (*)
  • Added support to process shortcodes of other plugins used in Ad Inserter code blocks
  • Added support to white-list or black-list individual urls
  • Added support to export and import settings for code blocks
  • Added support to specify excerpts for block insertion
  • Added support to specify text that must be present when counting paragraphs

1.5.3

  • Fixed Security Vulnerability: Plugin was vulnerable to a combination of CSRF/XSS attacks (credits to Kaustubh Padwad)
  • Fixed bug: In some cases deprecated widgets warning reported errors
  • Added support to white-list or black-list tags
  • Added support for category slugs in category list
  • Added support for relative paragraph positions
  • Added support for individual code block exceptions on post/page editor page
  • Added support for minimum number of words
  • Added support to disable syntax highlighting editor (to allow using copy/paste on mobile devices)

1.5.2

  • Fixed bug: Widget titles might be displayed at wrong sidebar positions
  • Change: Default code block CSS class name was changed from ad-inserter to code-block to prevent Ad Blockers from blocking Ad Inserter divs
  • Added warning message if deprecated widgets are used
  • Added support to display blocks on desktop + tablet and desktop + phone devices

1.5.1

  • Few fixes to solve plugin incompatibility issues
  • Added support to disable all ads on specific page

1.5.0

  • Added support to display blocks on all, desktop or mobile devices
  • Added support for new widgets API - one widget for all code blocks with multiple instances
  • Added support to change wrapping code CSS class name
  • Fixed bug: Display block N days after post is published was not working properly
  • Fixed bug: Display block after paragraph in some cases was not working propery

1.4.1

  • Fixed bug: Code blocks configured as widgets were not displayed properly on widgets admin page

1.4.0

  • Added support to skip paragraphs with specified text
  • Added position After paragraph
  • Added support for header and footer scripts
  • Added support for custom CSS styles
  • Added support to display blocks to all, logged in or not logged in users
  • Added support for syntax highlighting
  • Added support for shortcodes
  • Added classes to block wrapping divs
  • Few bugs fixed

1.3.5

  • Fixed bug: missing echo for PHP function call example

1.3.4

  • Added option for no code wrapping with div
  • Added option to insert block codes from PHP code
  • Changed HTML codes to disable display on specific pages
  • Selected code block position is preserved after settings are saved
  • Manual insertion can be enabled or disabled regardless of primary display setting
  • Fixed bug: in some cases Before Title display setting inserted code into RSS feed

1.3.3

  • Added option to insert ads also before or after the excerpt
  • Fixed bug: in some cases many errors reported after activating the plugin
  • Few minor bugs fixed
  • Few minor cosmetic changes

1.3.2

  • Fixed blank settings page caused by incompatibility with some themes or plugins

1.3.1

  • Added option to insert ads also on pages
  • Added option to process PHP code
  • Few bugs fixed

1.3.0

  • Number of ad slots increased to 16
  • New tabbed admin interface
  • Ads can be manually inserted also with {adinserter AD_NUMBER} tag
  • Fixed bug: only the last ad block set to Before Title was displayed
  • Few other minor bugs fixed
  • Few cosmetic changes

1.2.1

  • Fixed problem: || in ad code (e.g. asynchronous code for AdSense) causes only part of the code to be inserted (|| to rotate ads is replaced with |rotate|)

1.2.0

  • Fixed bug: manual tags in posts lists were not removed
  • Added position Before title
  • Added support for minimum number of paragraphs
  • Added support for page display options for Widget and Before title positions
  • Alignment now works for all display positions

1.1.3

  • Fixed bug for {search_query}: When the tag is empty {smart_tag} is used in all cases
  • Few changes in the settings page

1.1.2

  • Fixed error with multisite/network installations

1.1.1

  • Fixed bug in Float Right setting display

1.1.0

  • Added option to manually display individual ads
  • Added new ad alignments: left, center, right
  • Added {search_query} tag
  • Added support for category black list and white list

1.0.4

  • HTML entities for {title} and {short_title} are now decoded
  • Added {tag} to display the first tag

1.0.3

  • Fixed bug with rotating ads

1.0.2

  • Added support for rotating ads

1.0.1

  • Added support for different sidebar implementations

1.0.0

  • Initial release

Requires: 4.0 or higher
Compatible up to: 4.7.3
Last Updated: 2 weeks ago
Active Installs: 50,000+

Ratings

4.9 out of 5 stars

Support

39 of 41 support threads in the last two months have been marked 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
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,1,1 100,2,2
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,2,2
100,1,1
100,1,1
100,2,2
100,2,2 100,1,1 100,2,2
100,1,1 100,1,1
100,1,1 100,3,3 100,1,1 100,1,1 100,1,1
50,2,1
100,2,2
100,2,2 100,1,1
100,3,3 50,2,1 100,2,2 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,2,2 100,2,2 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,3,3 100,1,1 67,3,2 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1