Auto Insert Ads Into Wordpress Posts - Not just Adsense

Discussion in 'WordPress' started by Nathan, Feb 2, 2009.

  1. #1
    Does anyone know of a plugin that would automatically insert ads into Wordpress posts? My goal is to add a left justified 300x250 ad after the first paragraph (or certain amount of characters) and another right justified 300x250 ad near the bottom if the post is long enough.

    I'm using a Mix of Google Adsense code and GAM code so a general plugin for ads would be better than an adsense specific one.

    Anyone know of something that does this?

    Thanks!
     
    Nathan, Feb 2, 2009 IP
  2. mrdo

    mrdo Well-Known Member

    Messages:
    1,552
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    138
    #2
    go to wordpress.org/extend and search plugin wordpress max ads lol
     
    mrdo, Feb 2, 2009 IP
  3. Nathan

    Nathan Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'll check out max ads. Thanks.
     
    Nathan, Feb 2, 2009 IP
  4. fishbed

    fishbed Banned

    Messages:
    499
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    go to single.php

    delete the_content, or content.

    replace with this code:

    <?php
    $where = 1;
    $content = apply_filters('the_content', get_the_content());
    $content = explode("</p>", $content);
    for ($i = 0; $i <count($content); $i++) {
    if ($i == $where) { ?>
    <div style="float:right; margin:0 0 10px 10px;">
    Your ads here.

    </div>
    <?php
    }
    echo $content[$i] . "</p>";
    }
    ?>
     
    fishbed, Feb 2, 2009 IP
  5. richardrm

    richardrm Peon

    Messages:
    343
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Did you ever try Caffeinated Content plugin. It does the job of not only pulling in content but also has ability to put in a link (adsense or any other link you want) automatically.

    -Rich
     
    richardrm, Feb 7, 2009 IP