Tuesday, November 16, 2010

How to Insert Ad Anywhere In Your Word press Posts

How to Insert Ad Anywhere In Your Word press Posts: This is the simplest trick to guide you how to Insert Ad Anywhere In Your WordPress Posts. You may can put any advertise banner or google adsense using this small WordPress Hack without a plugin.


Step 1:

First open your WordPress Theme function.php file and add following function and save the file.


1.





2.

function showads() {

3.

return '

4.


5.

Your Advertise Banner or Google Adsense Code Here

6.


7.

';

8.

}

9.

add_shortcode('adcode', 'showads');

10.


Step 2:

Once you added this code, you can embed your ad code anywhere in your WordPress Post exactly where you want by putting [adcode] in your post HTML.

No comments:

Post a Comment