• Hi, could someone please tell me how i can add my adsense code to appear before the first post of any page? I did a search, but only found putting adsense after the first post or before the second post.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    that is the start of The Loop.
    Put your code just above that – shoould then appear once at the top.

    Thread Starter santasballz

    (@santasballz)

    Thanks that worked

    i have another question though, is there anyway to make adsense appear before the first 3 posts in a page? the above method only makes it appear once before the first post right?
    thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adsense before first post?’ is closed to new replies.