You may have seen many wordpress blogs showing ads inside post contents. This simple WordPress Tutorial guide you how to insert ads inside the post contents. You may put the ads after the first or second paragraph.

Wordpress Ad after first post

In this little WordPress Hack I will guide you how to put ad after first paragraph automatically in your everypost without any WordPress Plugin.

First open your single.php file from your current theme and search the following code:

  

Now Replace below code with it:

    ", $content);
    for ($i = 0; $i 

    
Your Text / Ads Go Here
"; } ?>

If you need, you can change the place after number of paragraphs by changing $paragraphAfter line.

Demo: MobiDhoom.com

21 COMMENTS

  1. This can be also done by integrating modx with wordpress.Due to this it becomes a part of CMS..This is very benifial for complicated add scripts

  2. @Raj….Thanks for sharing your suggestion about ModX CMS but this trick is simplest way to integrate ad code in wordpress theme without installing any Plugin or CMS.

  3. I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think.

  4. I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites webpage list and will be checking back soon.

  5. This is a exceptional article, I found your web page doing research yahoo for a related subject matter and came to this. I couldnt find to much other details on this write-up, so it was pleasant to discover this one. I will likely be returning to check out some other posts that you have another time.

  6. Amazing site, where did you come up with the information in this post? I’m pleased I found it though, ill be checking back soon to see what other articles you have.

  7. Superb site, where did you come up with the knowledge in this article? Im happy I found it though, ill be checking back soon to see what other articles you have.

  8. you do make some very good points. Im very interested in this topic and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.

  9. Superb posting, this is very similar to a site that I have. Please check it out sometime and feel free to leave me a comenet on it and tell me what you think. Im always looking for feedback.

  10. Funny, I was discussing this thing with my older sister the other day, now I will have 1 more argument in my hand when it’ll arrive to confrontation when again….

  11. How’s it heading? I loved reading through this submit. My husband and I’ve been browsing for this type of write-up for the longest time and We realize that your info about the problem at hand is spot on. I’ll be confident to introduce this posting to…

LEAVE A REPLY

*