I typically like to keep my ad content in its own .php file as it keeps file-sizes low and keeps things categorized.
Do these in order:
Create an ASCII text file named adsys.php in your template directory.
.wrapped {
width:auto;
height:auto;
padding:20px
}
Now we just carefully set up our Wordpress loop(s) so that they call everything correctly.
<?php while (have_posts()) : the_post(); $loopcounter++; ?>Yoku deki mashta.
This would insert our Adsense code from adsys.php into our index.php or whatever page/category/etc we were posting to after 2 posts. On post 3, it would call adsys.php and then loop like normal.
You must be logged in to post a comment.