How to Display Javascript in Posts
When you try to display adsense using the original javascript code, it doesn’t show up, because wordpress posts do not have javascript enabled.
A common question has always been, how do you display adsense in wordpress posts?
The reason we would want to do this is because it is a proven fact that ads that blend in with content get clicked on more often. Viewers tend to filter out ads that look like ads, but if ads become part of the content, they will either click because they confuse the ads with a link or because they see the ad and are actually interested.
Instead of adsense, you may use this method to display any javascript code. I am just going to use adsense as an example for simplicity purposes.
It is easy to display ads in a wordpress post! See? I’m doing it right here!
A simple plugin can help you do what I just did above. Visit the Adsense-Deluxe plugin site if you wish to download it or download it directly here.
Unzip the archive and upload the adsense-deluxe.php file to your plugins directory. I am going to skip how to install the optional stuff for WYSIWYG editing, but you can visit the plugin’s site if you wish to learn how to install the extras.
After uploading the file, go to the plugins panel and activate the plugin.
To input your code, click on options, adsensedeluxe, and create an adsense block by pasting your adsense code where it says to. I recommend a half banner or something smaller so your ads can fit and blend in better with your posts. You may create multiple blocks if you wish, but I only use one. To display your default block, simply insert your code’s ID (will be generaged by the plugin) in the html editor, and your ads will show up in our post.
No related posts.








I’m only writing one per day now. With the pay per post, advertisers pay if you write about their site and help promote it. They want your blog to be at least 3 months old so you have a google PR and a good number of regular visitors. If you advertise for them but get very little traffic and are low on search engine rankings, then it’s a bad deal for them to be paying you.
Are you writing pay-per-post already? Or should we interpret your resolution to mean one blog post per day, per blog?
How does the pay per post thing work anyway? Why would people pay you to write a blog and why must it be 3 months old?
So that ad that’s in the middle of this entry, you’re being paid to display it? You’d have to give them a bank account to deposit it in, though.
What I meant was that you have a January 3 entry on both Wordpress and Xanga, two different entries. So it would not be a good idea to interpret your resolution as one blog post total per day. Rather, it is one blog post per blog each day.
Ok, I cheated a little, but I didn’t feel like counting such a small post in my xanga as an actual post. I don’t get paid unless people click on the ads, but ads in the middle of pages are more likely to be clicked on than the ones in large ad units, because the ones in the middle of pages are more likely to actually be seen or confused with content.