2 Aug
Insert banner / ads between wordpress posting
we can place ads/ banner between posting 1 and 2 or 2 and 3 or inside the post.
For add the banner code :
First : Edit your theme, Find at index.php the wordpress code :
<?php if (have_posts()) : ?>
Add this code below that WP code :
<? $itest = 0; ?>
For add your ads/banner code : find WP code :
<?php while (have_posts()) : the_post(); ?>
And place below that this code:
<? if ( $itest == 1)
{
?>
<p align="left" style="padding-bottom:8px">
Insert here your ads/banner code
</p>
<?
}
else if ( $itest == 2)
{
?>
<p align="left" style="padding-bottom:8px">
Again if you want to place between post 2 and 3
</p>
<?
}
?>
You can add as much you want to place the ads/banner.
For add banner inside the post, you just find this code :
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>


