Ciao a tutti,

in una funzione richiamata dal file index.php del mio blog vorrei apportare una modifica in modo tale che al terzo post venga mostrato il contenuto adsense.

Secondo voi è possibile? devo mettere un contatore che si incrementa ad ogni post e al secondo mostri il codice? scusate ma non so proprio come fare.. :master:

Grazie per l'aiuto


codice:
<table width="880" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><div id="content">
      <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
      <div class="post" id="post-<?php the_ID(); ?>">
        <div class="entry">
          <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Link permanente a <?php the_title(); ?>">
            <?php the_title(); ?>
          </a></h2>
          <span class="post-views">
            <?php if(function_exists('the_views')) { the_views(); } ?>
            </span> <span class="post-calendar">
              <?php the_time('F jS, Y') ?>
              da
              <?php the_author() ?>
              </span>
          <div class="post-content">
            <?php the_content('Leggi di più  &raquo;'); ?>
            <div class="postmetadata"><span class="post-cat"> Postato in 
              <?php the_category(', ') ?>
              </span> <span class="post-comments">
                <?php comments_popup_link('No Comments &#187;', '1 Commento &#187;', '% Commenti &#187;'); ?>
                </span></div>
          </div>
        </div>
      </div>
      <?php endwhile; ?>