How to Insert Ads Inside Post Content in WordPress

Pin It

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.

ad first post How to Insert Ads Inside Post Content in WordPress

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:

    
Your Text / Ads Go Here

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

Demo: MobiDhoom.com

Most Related Tutorials

21 Responses to How to Insert Ads Inside Post Content in WordPress

  1. Pingback: Latest ads news – GLAA Forum: French anti-smoking ads provoke controversy

  2. Pingback: How to Insert Ads Inside Post Content in WordPress | Learn Web … | Drakz Free Online Service

  3. Raj

    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

  4. you may be keep in touch with us & you will gain a lot of useful information about your relevant topic soon as possible.

  5. Pingback: How to Insert Ad Anywhere In Your Wordpress Posts | Learn Web, Designing and Other Tutorials across the Web

  6. @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.

  7. well.. thank you, this is very useful.

  8. I discovered your web site the other day and after reading a few posts, thought I would say thanks for all the excellent content. Keep it coming!

  9. Incredibly nice read, some valid points were made.

  10. Gene Kamph

    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.

  11. 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.

  12. 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.

  13. 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.

  14. Margie Bullers

    This is a outstanding post, but I was wondering how do I

  15. Evette Blaker

    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.

  16. Jeremiah Rabalais

    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.

  17. Wholesale polo shirts

    After reading you site, Your site is very useful for me .I bookmarked your site!

  18. 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.

  19. Hermes handbags

    Nice Information.. Thx for sharing this

    information

  20. Pingback: Beanie visor hat

  21. Pingback: Gucci bags

Leave a Response

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>