Ads between posts

Discussion in 'WordPress' started by superclick, Jun 4, 2006.

  1. #1
    I have blogger.com question. I tried to find answer on this forum but I didn't find. I wonder how to place ads between two posts on my blog.
     
    superclick, Jun 4, 2006 IP
  2. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #2
    place the google or whatever adsense code after the post code

      <!-- Begin .post -->
      <div class="post"><a name="<$BlogItemNumber$>"></a>
         
        <BlogItemTitle>
        <h3 class="post-title">
    	 <BlogItemUrl><a href="<$BlogItemUrl$>" title="external link"></BlogItemUrl>
    
    	 <$BlogItemTitle$>
    	 <BlogItemUrl></a></BlogItemUrl>
        </h3>
        </BlogItemTitle>
         
        <div class="post-body">
        <p>
          <$BlogItemBody$>
        </p>
        </div>
        
        <p class="post-footer">
    
          <em>posted by <$BlogItemAuthorNickname$> at <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em>
          <MainOrArchivePage><BlogItemCommentsEnabled> |
             <a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>><$BlogItemCommentCount$> comments</a>
          </BlogItemCommentsEnabled><BlogItemBacklinksEnabled>
    <a class="comment-link" href="<$BlogItemPermalinkUrl$>#links">links to this post</a>
    </BlogItemBacklinksEnabled>
    </MainOrArchivePage> <$BlogItemControl$>
        </p>
      
    [B][U]------Place your adsense code here-----------[/U][/B]
    
      </div>
      <!-- End .post -->
    PHP:
    tell me if it works. :)


    now incase you want it after the comments..

      <!-- Begin #comments -->
     <ItemPage>
      <div id="comments">
    
    	<BlogItemCommentsEnabled><a name="comments"></a>
        
        <h4><$BlogItemCommentCount$> Comments:</h4>
        
        <dl id="comments-block">
    
          <BlogItemComments>
    
          <dt class="comment-poster" id="c<$BlogCommentNumber$>"><a name="c<$BlogCommentNumber$>"></a>
            <$BlogCommentAuthor$> said...
          </dt>
          <dd class="comment-body">
            <p><$BlogCommentBody$></p>
            <p class="comment-timestamp"><a href="#c<$BlogCommentNumber$>" title="comment permalink"><$BlogCommentDateTime$></a></p>
            <$BlogCommentDeleteIcon$>
          </dd>
          </BlogItemComments>
    
        </dl>
        
        <p class="comment-timestamp">
        <$BlogItemCreate$>
        </p>
        </BlogItemCommentsEnabled>	    
        <BlogItemBacklinksEnabled>
        <a name="links"></a><h4>Links to this post:</h4>
        <dl id="comments-block">
        <BlogItemBacklinks>
            <dt class="comment-title">
            <$BlogBacklinkControl$>
            <a href="<$BlogBacklinkURL$>" rel="nofollow"><$BlogBacklinkTitle$></a> <$BlogBacklinkDeleteIcon$>
            </dt>
            <dd class="comment-body"><$BlogBacklinkSnippet$>
            <br />
            <span class="comment-poster">
            <em>posted by <$BlogBacklinkAuthor$> @ <$BlogBacklinkDateTime$></em>
            </span>
            </dd>
        </BlogItemBacklinks>
        </dl>
        <p class="comment-timestamp"><$BlogItemBacklinkCreate$></p>
        </BlogItemBacklinksEnabled>
    
    
    		<p class="comment-timestamp">
    	<a href="<$BlogURL$>">&lt;&lt; Home</a>
        </p>
    
    [B][U]------Place your adsense code here-----------[/U][/B]
    
        </div>
    
    </ItemPage>
      <!-- End #comments -->
    PHP:
     
    humm, Jun 4, 2006 IP
  3. jawinn

    jawinn Active Member

    Messages:
    1,024
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    88
    #3
    I wrote a blog post about this here. It has three different ways to add adsense to a Wordpress Blog. Hope this helps.
     
    jawinn, Jun 6, 2006 IP
  4. ken123

    ken123 Peon

    Messages:
    527
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Wow, this is cool. Thanks for the info.
     
    ken123, Jun 7, 2006 IP