1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

wordpress code question

Discussion in 'Programming' started by swollenpickles, Sep 30, 2006.

  1. #1
    I've been messing around with the placement of adsense stuff on my favourite site: http://www.swollenpickles.com/

    I've been placing the blocks by inserting them in the index file and the single page file. The only thing is that I want to get them into the post like I've done here:
    http://one-dollar-challenge.blogspot.com/

    How do I do this in wordpress, I want the 336x280 block in the first and second posts on the main page, and to have one 336x280 in the post when you view a single post.

    Any help is appreciated.

    Cheers
     
    swollenpickles, Sep 30, 2006 IP
  2. jackslounge

    jackslounge Peon

    Messages:
    434
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure I understand what you mean, but is my site what you mean? my ads are smaller than that size, but you get the idea. I am using the adsense deluxe plugin - very easy :)
     
    jackslounge, Sep 30, 2006 IP
  3. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #3
    That's the sort of thing I'm thinking of. Is it all automated or does it reply on entering code in your posts? I wanted to try and have it all automated so that I couldn't have more than the limit of ads on one page etc.
     
    swollenpickles, Sep 30, 2006 IP
  4. jackslounge

    jackslounge Peon

    Messages:
    434
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You need to enter a short string of code in the post - it ads a button to do so in the post box. It is easy to use.

    Each of my posts has this code, and I can display as many posts per page as I want without it going over the limit. AdsenseInjection is another good one, if you want full automation, no frills.
     
    jackslounge, Sep 30, 2006 IP
  5. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #5
    so it wont let you exceed the google limit?
     
    swollenpickles, Sep 30, 2006 IP
  6. -Abhishek-

    -Abhishek- Regaining my Momentum!

    Messages:
    2,109
    Likes Received:
    302
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi Swollenpickle,

    Wordpress uses a loop for its blog, which in simple language means everything that will be displayed for the entrys must be within 2 tags. This ensures that everything inside the tags will be included with every post! Now to add adsense and then stay within the adsense 3 ads limit becomes kinda hard and may require a greater amount of coding with a 'if ...else...' variable!

    The simpler solution to this maybe using the mighty adsense plugin ...
    http://mightyhitter.com/main-page/plugins/mightyadsense/

    This allows you to set a particular code in the WP-Dashboard and you can set the number of the post it displays in! The maximum it allows is 3 ads per page so well u stay well below the limit!

    Hope it helps!

    Cheers!
     
    -Abhishek-, Sep 30, 2006 IP
  7. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Thanks for your help guys. After playing around with both plugins I think I've got it sorted. Mighty Adsense does the job I'm after.
    Jackslounge - you may want to have a look at mighty adsense too. it seems to automate the process which makes it simple for clowns like me! :p
     
    swollenpickles, Oct 1, 2006 IP
    -Abhishek- likes this.
  8. -Abhishek-

    -Abhishek- Regaining my Momentum!

    Messages:
    2,109
    Likes Received:
    302
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Glad I could help you swollenpickles! Good Luck with your Blog!

    Cheers!
     
    -Abhishek-, Oct 1, 2006 IP
    swollenpickles likes this.