Posts Tagged ‘loopcounter’

WordPress Theme Hacks

Written on January 21st, 2010 by adminno shouts

Display Google Ad after the first post

A lot of people have asked me for this. How to display a Google ad after the first post? It is very simple. You just need to add a variable ($loopcounter) in The Loop. If the $loopcounter is less than or equal to 1, then include google-ad.php code.

via WordPress Theme Hacks.

Filed under Design Tags:, , , , , ,