My reply is just a guideline, so don’t expect exact copy and paste code but anyhow. You can do this via editing your theme files (there may be a plugin out there, but I haven’t seen one).
‘m sure that this question has been asked multiple times, so I apologize for repetition. I recently joined an affiliate marketing program (other than Adsense) and I want to put the ads on the Home Page centered under each post
This can be done by editing index.php and single.php in your theme folder and looking for the loop. You will see something like this:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
By putting your ad under that part directly, you will be able to place code that will be inserted after the header of each post. Example:
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div align="center">WordPress is so cool</div>
Maybe, if possible, under the actual posts and on the side of the pages (left, right).
Now, I ain’t sure what you mean by this but anyhows I will answer on how I think you meant. I am under the understand that you want to be able to place an ad at the end of the post on both sides of the post but if you look for
<?php the_content('Read the rest of this entry »'); ?>
After that you could once again place a floating DIV such as
<div align=”left”>WordPress is so cool</div>
<div align=”right”>WordPress is so cool yet again</div>
That is just rough code that should get to start in those cases.
Furthermore, it would be cool if I were able to set it up so that it fluctuates between a few different ads so that the same one doesn’t show up each time. Is there a way to do this?
This too is possible and below I have put an example that you can use. Now this ain’t the best way to do it, but it happens to be a working way you can work from.
<?php
srand ((double) microtime( )*1000000);
$random_number = rand(0,10); // 10 is the max number of ads you want
if $random_number == "1"{ echo "Ad One"; }
if $random_number == "2"{ echo "Two"; }
.....
?>
Hopefully my reply is helpful in terms of physically coding it but chances are there is a plugin out there that will do it. Also, might want to look at – http://codex.wordpress.org/User:Tomhanna/Adding_Ads_to_Wordpress