A project by John Kolbert
Smart Ads is an intelligent advertising plugin for WordPress. Choose where and when your ads are displayed, then forget about it.
Latest Version: 2.2 | Compatability: 2.8.x | Download from WP.org
Automatically adds advertisements to the beginning and end of posts based on the post length, age of post, category, or blog member status. Also allows you to insert custom ads anywhere in a post or page using the
[smartads] shortcode. Enter your ad code directly from the settings menu, no messing with pasting code into a separate PHP file. If you delete the plugin from the WordPress plugins menu it automatically deletes its options from your mySQL database (WP 2.7 only).
Developing free plugins takes a lot of time and hard work. I do it because I love WordPress and giving back to the community. However, donations give me resources to continue devoting time to upgrades and support. If you’ve found this plugin useful, please donate any amount securely through PayPal.
Download Smart Ads from official WordPress.org listing.
Smart Ads automatically, yet intelligently inserts advertisements like Google’s Adsense above and below your post content. These advertisements are only visible when viewing a single post (single.php). Since it doesn’t make sense to fill small posts with ads, users can set a “Wordcount” minimum for their advertisements. Smart Ads will only insert advertisements into posts that meet or exceed the desired Wordcount. Do you start your posts with an image? You can chose to disable the top ad if your post has an image tag in the first number of characters (you set the limit)!
Also, to ensure that new content remains fresh, users can chose to only place ads on posts that are over a certain amount of days old. Advertisements can be manually disabled on a post-by-post basis while writing a post, for entire categories, or for registered blog members.
You can also insert custom ads anywhere in your post text using the built in shortcode. Custom ads are not affected by the Wordcount or date minimum requirements and can toggled to be shown on the index page or only shown when in single post view.
- Download smartads.zip and unzip it.
- Upload the entire smartads folder to your wp-content/plugins folder
- Activate the plugin
- Navigate to “Settings” and click on “Smart Ads” to insert your advertising code and configure its options.
If you’re upgrading from 1.x to 2.0 you will notice a significant change. Smart Ads no longer uses the external
yourads.php file. You can now directly enter your advertising code into the Smart Ads options page. After you upgrade you will be directed to navigate to the Smart Ads options page and update your options.
Smart Ads will attempt to insert your advertising code from
yourads.php into their respective text boxes for you. However, you must press update for it to save it to the database. Until you do so your ads will not be displayed.
Usage and Options
Below is a detailed explanation of the available options for Smart Ads.
Show Custom Ads on Homepage:
If selected, custom ads will be displayed on the home page. Use this with caution because many advertising services limit the number of ads that can be displayed on a single page.
Enable Legacy Custom Ads Notation:
Only recommended for users upgrading from 1.x. This allows you to continue using the original custom ads notation. However, new users should just use the built in shortcode capabilities. Just type
[smartads] anywhere in your post where you want your custom ads to be displayed.
Minimum Post Wordcount:
Determines the minimum number of words a post must have for ads to be shown. Enter 0 to disable this feature. This does not affect custom ads.
Only show ads on posts older then:
Self explanatory. Posts won’t display ads unless they are older then the number of days you chose here. Enter 0 to disable. This does not affect custom ads.
List category IDs seperated by a comma and a single space (such as 15, 2, 19)
Posts in these categories will not have ads placed in them. This does not affect Custom Ads.
Disable Top Ad if Post Begins with an Image:
If enabled, posts with an image tag (spcifically,
) will not have the top ad included if the img tag is found within the number of characters you set in the options box. The character count includes HTML, so be generous.
Disable Ads For Registered Members:
If enabled, registered members will not see any ads, even custom ads.
Place your advertising code into the Top ad, Bottom ad, or Custom ad slots to be shown in their respective places.
All support issues should be asked in the Smart Ads support forum. Please do not use the contact forum for support questions as they will not be answered.
Version 2.2: released June 25, 2009
- fixed an error where posts with ads disabled become re-enabled randomly
Version 2.1: released May 29, 2009
- fixed a PHP error that affected the settings page before any Ad code was input
Version 2.0: released January 16, 2009
- fixed bugs for WP 2.7
- allows you to enter advertising code directly into options page
- introduces the SmartAds shortcode.
- bug fixes
Version 1.2: released on May 11, 2008
- added ability to hide top ad if post begins with an image
- added an additional custom ad notation
- revamped the “write post” options box
- provided a way of hiding “write post” options box
Version 1.1.2: released on April 16, 2008
- fixed critical error with Smart Ads interfering with RSS content
Version 1.1.1: released on April 15, 2008
- added ability to disable ads for all registered users
- added ability to exclude ads for entire categories
Version 1.0.1 primary release on April 10, 2008
Copyright and Disclaimer
Copyright © 2008-2009 by John Kolbert
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.