First how to put adsense ONLY before first post or after the first post in wordpress 2.3 and second where is better to put the code
The code needs to go in your index.php Find the loop <?php while (have_posts()) : the_post(); ?> and amend it as below: <?php $lb_first=true; ?> <?php while (have_posts()) : the_post(); ?> .....More Code ~ leave alone...... <?php if(is_single()) { the_content(); } else { if ($lb_first) { ?> ADSENSE CODE <?php the_content(); ?> ADSENSE CODE <?php $lb_first=false;} else {the_content();} } ?> .....More Code ~ leave alone...... <?php endwhile; ?>
Isn't agaist adsense TOS ? modify the code ? i use adMan right now but doesn't have this option , i put the code on first page but i don't like it because appear after "share this" plugin , i want it appear before right after the post
What's the question? If you're not happy amending code then use the adsense deluxe plugin that a-humblekid suggests.
No , No i'm happy... i saw a plugin using a different technique i think adsense injection... i want to be able to put the code but aroud it to be the text , not only ads before the text