Adsense In Wordpress 2.0

Discussion in 'WordPress' started by SUPERSTEVE9219, Nov 27, 2006.

  1. dalster44

    dalster44 Active Member

    Messages:
    722
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #21
    Sorry, I wouldn't know, I was just looking at my code and thought it would help.

    I'm not sure what makes it show up on the most 3 recent posts? ( I didn't code that) I'm sure someone here knows.
     
    dalster44, Nov 27, 2006 IP
  2. dalster44

    dalster44 Active Member

    Messages:
    722
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #22
    Actually I think this is exactly what your looking for:

    xxxhttp://wordpress.org/support/topic/12685?replies=38
     
    dalster44, Nov 27, 2006 IP
  3. SUPERSTEVE9219

    SUPERSTEVE9219 Well-Known Member

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #23
    yay i got it working!


    I have one problem though, sometimes when you link links to navigate around the site it loads to a blank page, you can try it for yourself by just clicking around a bit. How do I fix this?
     
    SUPERSTEVE9219, Nov 28, 2006 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #24
    The best way is to hardcode adsense code into the template file.
     
    agnivo007, Nov 28, 2006 IP
  5. SUPERSTEVE9219

    SUPERSTEVE9219 Well-Known Member

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #25
    yea I got it working with moosecandy though

    I have one problem though, sometimes when you link links to navigate around the site it loads to a blank page, you can try it for yourself by just clicking around a bit. How do I fix this?
     
    SUPERSTEVE9219, Nov 28, 2006 IP
  6. SEO Buzz Box

    SEO Buzz Box Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #26
    First post? You mean only on current posts?

    This is all pretty easy stuff you must forget about finding the perfect plugin because there is not one.

    If you want to generate income you do not want adsense on your home page in wordpress, you are looking for organic search traffic. The single post or single.php is where the code goes. If you do not have a template that has a single.php either make one for find one that does.

    See my decription above and do not be afraid to play around with it.
     
    SEO Buzz Box, Nov 29, 2006 IP
  7. asapcorp

    asapcorp Banned

    Messages:
    725
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #27
    This is more interesting and more useful information. Thank you for that.
     
    asapcorp, Nov 29, 2006 IP
  8. dalster44

    dalster44 Active Member

    Messages:
    722
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #28
    What do you mean, you don't want adsense on your main page in wordpress?

    Why not? very curious.

    Thanks
     
    dalster44, Nov 29, 2006 IP
  9. SUPERSTEVE9219

    SUPERSTEVE9219 Well-Known Member

    Messages:
    170
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #29
    most people vist the post in your site from links from blogs or search engines, it wont hurt to have it on the front page but you get more hits from single post.


    Once on my other blog I got 25,000 and only 2,000 of those where on the main page
     
    SUPERSTEVE9219, Nov 29, 2006 IP
  10. dalster44

    dalster44 Active Member

    Messages:
    722
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #30
    Thanks, I never thought of that, very good :)
     
    dalster44, Nov 29, 2006 IP
  11. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #31
    plz tell me how to use adsense deluxe ?
    I have ten posts on every page now i want that adsense deluxe automatically show first ad after first post then show second ad after fourth post and at last third ad after ninth post.
    Every time when i ad new post the ads should be automaticallly shown in that order.

    I want that when i add a big topic it should be cut off after five lines then it has to show read more.. option automatically instead that every time i add <---more---> tag.

    Plz Help me i will be very thankfull.
     
    @SHFAQ, Dec 5, 2006 IP
  12. check

    check Guest

    Messages:
    356
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #32
    Hey Steve (both of you),
    I was also having problems with this but this seemed work like a charm (on all 3 of my blogs). http://www.alittlenerdy.com/2006/10/02/adsense-after-first-post-in-wordpress/

    Note; he says "Find the line that starts with:

    <?php if (have_posts())"

    not all templates have that EXACT code so you might have to search a little manually, it's not too hard to find though.
     
    check, Dec 6, 2006 IP
  13. @SHFAQ

    @SHFAQ Well-Known Member

    Messages:
    257
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #33
    Anyone Here to plz help me
     
    @SHFAQ, Dec 6, 2006 IP
  14. gilfil

    gilfil Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #34
    I've done a simples hack to achieve the goal of placing an ad between two posts.

    Here goes it, step by step:

    Step 1

    In theme editor, open the main page index (usually index.php)

    find:
    <?php get_header(); ?>
    PHP:
    edit, it look like this:

    <?php get_header(); $middle_ad  = 0; $position = 1; ?>
    PHP:


    Step 2

    find:
    <?php endwhile; else: ?>
    PHP:

    insert, before it:
    <?php
    
    $middle++;
    
    if ($middle == $position ){  ?>
    
    <center>
    <!-- YOUR ADSENSE CODE HERE -->
    
    <!-- END ADSENSE CODE  -->
    </center>
    
    <?php  } ?>
    PHP:

    You can choose any position, all you gotta do is change from "1" to any other the value of:
    $position = 1;
    PHP:
    You can even randomize the position, making the ad appear in different positions (which I do on my sites), all you gotta do is use the rand function, like this:
    $position = rand(1,3);
    PHP:
    In the above case it will appear after the 1st, or the 2nd or the 3rd posts.

    Hope it helps out ;)
     
    gilfil, Dec 6, 2006 IP
  15. BWDOW

    BWDOW Guest

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #35
    you website is unreachable now.
    Doesn't it against TOS. I mean i think your web site is porn related. Is it legal at adsense?
     
    BWDOW, Dec 6, 2006 IP
  16. BWDOW

    BWDOW Guest

    Messages:
    210
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #36
    Just loaded
    sorry. It is not about porn. Sorry
     
    BWDOW, Dec 6, 2006 IP