Ayuda para insertar Adsense en mi blog

  • Autor Autor lennuc
  • Fecha de inicio Fecha de inicio
L

lennuc

Préstamo
Ni
Redactor
hola estoy tratando de poner adsense en mi blog abajo de el titulo (entre el titulo y la info) pero en mi theme ahi q ponerlo en inc/post.php pero al ponerlo ahi me aparece el codigo tambien abajo de el titulo en la pagina principal . (aparece tambien en la entrada individual) pero no quiero que aparesca en la princpal. Saben como puedo solucionarlo ?.
 
Estas usando algun plugin para manejar adsense?
 
no solo tratando de ponerlo entre medio de los codigos
 
Single.php

Amigo si no trae single.php tu theme es weirdo, creeme no conozco ningun theme que no se le pueda poner adsense en single.php, que theme es? si nos dices tal vez sepamos una mejor respuesta.
 
este es el codigo de el single.php :
PHP:
<?php get_header(); ?>

<div id="content" class="widecolumn">
  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  <?php include (TEMPLATEPATH . '/inc/post.php');?>
 
  <?php if (function_exists('wp23_related_posts')) { ?>
  	<div id="related">
  <?php wp23_related_posts(); ?>
  </div>
  <?php } ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria','braincast')?>.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

osea que lee el contenido de inc/post.php lo dice en esta linea:
PHP:
<?php include (TEMPLATEPATH . '/inc/post.php');?>

Este es el codigo de inc/post.php:
PHP:
<div class="<?php if(is_single()) {  ?>first post<?php } else { ?>post<?php }  ?> " id="post-<?php the_ID(); ?>">
  <?php if(is_single()) {  ?>
  <div class="comms"> <a href="#comments">
    <?php comments_number('0', '1', '%' );?>
    </a> </div>
  <?php }  ?>
  <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to','brain')?> <?php the_title_attribute(); ?>">
    <?php if(is_single()) {  ?>
    <? } else {  ?>
    <strong>+</strong>
    <?php } ?>
    <?php the_title(); ?>
    </a> <small>
    <?php _e('By','brain')?>
    <?php the_author_posts_link('nickname'); ?>
    <?php the_time('d F Y'); ?>
    <?php _e('at','brain')?>
    <?php the_time() ?>
    <?php if(function_exists('the_views')) { the_views(); } ?>
    <?php _e('and have','brain')?>
    <?php comments_popup_link(__('No Comments','brain'),__('1 Comment','brain'),__('% Comments','brain')); ?>
    <?php edit_post_link(__('e', '&nbsp; | &nbsp;', '')); ?>
    </small> </h2>
  <div class="entry">
  	<?php if(is_single()) { ?>
    <div class="entryContent">
    <?php } ?>
    <?php the_content(__('Read the rest of this entry  →','brain'));?>
    <?php if(is_single()) { ?>
    </div>
    <?php } ?>
    <?php if(is_single()) { ?>
    <?php wp_link_pages(__('Pages: ','brain'), '', 'number',__('next &rarr;','brain'),__('&larr; previous','brain'), '%'); ?>
    <div class="postmeta">
      <ul class="floatR">
        <li class="icon_rss">
          <?php comments_rss_link('RSS 2.0'); ?>
        </li>
        <li class="icon_track">
          <?php if (('open' == $post->ping_status)) { ?>
          <a href="<?php trackback_url(true); ?>" rel="trackback">
          <?php _e('Trackback','brain')?>
          </a>
          <?php } elseif (!('open' == $post->ping_status)) { ?>
          <strong>
          <?php _e('Trackbacks closed','brain')?>
          </strong>
          <?php  } ?>
        </li>
      </ul>
      <ul class="floatL">
        <li class="icon_categories"><strong>
          <?php _e('Under','brain')?>
          :</strong>
          <?php the_category(', ') ?>
        </li>
        <?php if (function_exists('the_tags')) : ?>
        <li class="icon_tags">
          <?php the_tags('<strong>Tags:</strong> ', ', ', '<br />'); ?>
        </li>
        <?php endif; ?>
      </ul>
      <br class="clear" />
    </div>
    <?php }  ?>
  </div>
  <?php if(is_single()) { ?>
  <div class="navPost">
    <div class="alignleft">
      <?php previous_post_link('%link', '' . __('Previous Post') . '', FALSE); ?>
    </div>
    <div class="alignright">
      <?php next_post_link('%link', '' . __('Next Post') . '', FALSE); ?>
    </div>
  </div>
  <?php } ?>
</div>