Place ads on your wordpress blog
Some method and type to place ads on your wordpress blog
1. Sidebar Ads
Sidebar contain two widgets; left navigation and right navigation
To place ads on sidebar (wp-content/themes/theme_name/sidebar.php), just insert your ads code before :
<?php if ( function_exists('dynamic_sidebar') ?>
your ads will appear on all pages; home page, pages and single post.
2. Ads between post on home page
Ads repeated, so your ads will appear on all post at home page.
To place ads on home page (wp-content/themes/theme_name/index.php), just insert your ads code before :
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
your ads will appear on all posts before content.
Or, insert your ads code before :
<?php endwhile; else: ?>
your ads will appear on all posts after content.
Determined Ads, so your ads will appear on certain post at home page.
Open (wp-content/themes/theme_name/index.php) and insert :
<?php $postnum = 1; $showads = 2; ?>
before :
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
then insert :
<?php if ($postnum == $showads) { ?>
YOUR ADS
<?php } $postnum++; ?>
before :
<?php endwhile; else: ?>
your ads will appear on home page in the second post ($showads variable).
3. Ads between post on single page
Open (wp-content/themes/theme_name/single.php) and insert YOUR ADS after :
<?php the_content(''); ?>
Or, you can use adman plugin. This plugin providing three options :
1. Ads code to appear before your post content
2. Ads code to appear in the middle (calculated) or where you specify
3. Ads code to appear after your post content
At Last,
A blog should be about the main subject matter and whatever someone wants it, and not full of advertising that will break up the reading of a post. Don’t place your ads that bothering/break up reading a post, it’s felt to disturb if the ads placed in the middle of a post.















I was wondering how to install those in a new blog. The description is a good step by step. Thanks a lot.