Hi, I have a question. But I don't know where is the right thread for this one. But I hope I could here some answers here. Anyway, I have seen wordpress sites having AdSense ads in the middle of the post. I mean, for example, in 1 page, there are total of 10 posts displayed, and I've seen people placing their ads after the 5th post, then after the AdSense ads will be the continuation of the 6th post and so on. I hope someone understood my point. Regards, Robert
You can put adsense code anywhere in your post in wordpress blog. just copy the adsense code and put is anywhere in your content.
Have you read all that I have said in my post? Please be serious, don't just look forward on adding your number of post. Because I consider this as a spam. Thanks.
That won't do as wordpress do not allow direct insertion of javascripts in post. You either do it by editing the single.php file or by using Adsense Plugin for Wordpress.
Do people get my point? Anyway, Abhik, so you are trying to say that its against the TOS of placing ads at the middle of a page? Just a simple note to everyone, please read the whole text on this thread. I'm looking for a real answer on my question.
Hello, Rob. I have a new blog also and I've had the same problem; fixed it yesterday. The link is in the signature, if you want to check it out. So you want to insert adsense after post nr X, right? This is a tutorial I've found on the web: http://www.tamba2.org.uk/wordpress/adsense/ - it will help you with most of the adsense placements. Basically, you have to insert these lines of code in the index.php file (as said in the tutorial). I've also inserted them in archive.php and if you want to, you can put them in single.php. You have to put this ABOVE the while loop (this is where the loop starts:<?php if (have_posts()) : while (have_posts()) : the_post(); ?> ): *put this above loop* <?php $postnum = 1; $showadsense1 = X; /*where X is the post no. AFTER you want to place adsense*/ ?> Code (markup): Right before the endwhile; Code (markup): you must write this: <?php if ($postnum == $showadsense1) { echo ' ADSENSE CODE '; } ?> <?php $postnum++; ?> Code (markup): If you want to center the ads, use: echo '<center>ADSENSE CODE</center> Code (markup): Hope I've helped.
Hi Robert, just to mention. Your question is quite unclear as you just tell us the statement and you did not tell us what you want ? You want how to do it ? Can you do it that way or what ? If you are asking how to do it, you just follow the way post by Abik. If you are asking whether you allow to do that or not ? From my experience, Yes.
Adsense plugin? LOL Vroooooooooooooooooooooooom!!! Way over my head at the beginning - I just figured it out. Thanks for the advice.
If I understood it correctly, then what you are asking is how somebody can insert an ad in between, lets say 5th and 6th post on the blog. Edit the index.php file and do what nicholas777 has told.
You didn't get my point, I am not doing this only to make many post. Check my post in my blog here -it that what you mean? That is very simple just copy the javascript code in the middle of your post. That's it no more no less... or if you want it automatically you can edit your temaplate and use that PHP code posted by nicholas777
To maximize your AdSense income you'll want to place your ads above the page crease (what people see without having to scroll down). Aligned INSIDE posts and to the left is the highest paying position... use the 336 pixel block for that.
I think you can only put adsense on the self hosted wordpress blogs! i have tried for my blogspot blog they are accepting adsense and earning money also..