How to add ads only at the first post?

It is very simple:

<?php if ($wp_query->current_post == 0) : ?>

<div style=”float:right”>

ads come here.

</div>
<?php endif; ?>

If you don’t want the ads show at homepage, using:

<?php if (!is_home()) ?>

King Php Science Welcome, you are from: 54.146.11.8