How to add Ads in posts in wordpress ?

Discussion in 'WordPress' started by poseidon, Nov 1, 2006.

  1. #1
    Hi, I am still adding plugins for my Health Center blog and want to some how add google ads after each post title and before main text. How can I do this ? also what other good plugins should I install ?

    Regards
     
    poseidon, Nov 1, 2006 IP
  2. ahkip

    ahkip Prominent Member

    Messages:
    9,205
    Likes Received:
    647
    Best Answers:
    0
    Trophy Points:
    310
    #2
    ahkip, Nov 1, 2006 IP
  3. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have to say one thing, this is happening twice in 24 hours when I have got a reply in less than 5 minutes for my problem. :) DP is faster than google in terms of proper response.

    Will install that plugin in a moment. By the way, did you like my blog ? still playing with it. Have to change the logo though. Any other suggestions ?
     
    poseidon, Nov 1, 2006 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    I'd recommend edit the templates.It's only one-time action!
     
    Richie_Ni, Nov 1, 2006 IP
  5. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ya after installing the plugin and using it, I just realized that the better thing would have been to directly edit the template as its very difficult for me to now edit all the previous posts and add the code.

    Regards
     
    poseidon, Nov 1, 2006 IP
  6. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #6
    You could get this done in the "single post.php" template file!
     
    Richie_Ni, Nov 1, 2006 IP
  7. ahkip

    ahkip Prominent Member

    Messages:
    9,205
    Likes Received:
    647
    Best Answers:
    0
    Trophy Points:
    310
    #7
    but can you get the Ads embedded in the content? like between paragraph?
     
    ahkip, Nov 1, 2006 IP
  8. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #8
    But he doesn't need to get the ads embedded in the content :D
     
    Richie_Ni, Nov 1, 2006 IP
  9. 30k Challenge

    30k Challenge Peon

    Messages:
    1,188
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #9
    No plugins needed but the file you should edit depends on the theme you use.

    Cheers.
     
    30k Challenge, Nov 2, 2006 IP
  10. sixav

    sixav Active Member

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    Edit template is an easiest way to go with less hassle.
     
    sixav, Nov 5, 2006 IP
  11. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #11
    Hi Richie, I understand what you mean but what code do you put in the single.php file? Using only <!--adsense--> does not recognise it. Do you have to use some other php code too?

    Thanks
     
    dcristo, Nov 26, 2006 IP
  12. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #12
    No need to add <!--adsense--> ,but you could use it as a mark.
    Just insert your adsense code into the template.Let me know if you have more questions.
     
    Richie_Ni, Nov 26, 2006 IP