Posts Tagged ‘display ads in sidebars’

How to Work With Ads in WordPress

If you display the same banner ads or PPC ads over and over in your posts or pages, there’s no need to copy and paste the code each time.  There’s a slick free ad manager plug-in that can do multiple things.

  • Rotate ads within the same space by creating zones.
  • Create individual ads to use when and where ever you like.
  • Use a PHP code snippet to modify your theme, or…
  • Use a tag to insert into your posts/pages only as needed.

Plugin(s) You’ll Need: 

  1. WPAds
  2. Advanced Text (optional, for display ads in sidebars)

Once installed, you can configure it in Settings > WPAds.

Description:  A brief description of what the ad is.

HTML Code:  Paste your HTML code in here.

Zones:  The name of a zone (area) on your blog.  When multiple ads are assigned to the same zone, they will rotate according to the next three settings.   You can configure an add to run in multiple zones by separating zone names with a comma.

Active:  Checkbox toggle to activate/deactivate the display of a particular ad.

Weight:  How often an ad should display in relationship to the other ads in the same zone.  1 is the default.  The higher the number, the more it displays.

Max Views:  Set the maximum number of impressions an ad should display.  Once the number has been reached, it stops displaying even when the Active checkbox is checked.

When you click the Save button, the code you’ll need to insert will display in the Zones section of the configuration screen.

PHP code:  This snippet can be placed within your theme’s template files.

Post code:  This snippet can be placed within a post or page where you want the ad to display.  You’ll need to switch to the HTML tab of the editor to insert it. 

Problems With Sidebars

I find that the post code does not work in sidebars, but the php code does if you insert it into an Advanced Text widget.  The download link for that plugin is above.  The Advanced Text widget works just like the normal Text widget, but it allows you to insert PHP code.

Share
Artisteer - Wordpress Theme Generator
Archives
Blog Theme Generator

Artisteer - #1 Blog Theme & Web Template Generator

Get Free Traffic

Blazing fast WordPress hosting. Host unlimited sites on unlimited hosting space. Free domain & setup. Only $3.95/mo.