Ver Mensaje Individual
  #10 (permalink)  
Antiguo 29/05/2013, 12:51
Abelmelero
 
Fecha de Ingreso: marzo-2009
Mensajes: 168
Antigüedad: 15 años
Puntos: 1
Respuesta: Cómo NO poner Adsense en unos post en concreto.

Creo que te refieres a esto verdad?

Cita:
<?php get_header(); ?>

<div id="content">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>


<div class="entry-body" id="post-<?php the_ID(); ?>">
<div class="entry-text">


<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" class="entry-title"><?php the_title(); ?></a></h1>

<?php
$adsense = get_post_meta($post->ID, 'adsense', TRUE);
if ($adsense == 'no') {
//
} else { ?>
<!-- <script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxxxxxxxxx";
/* 336x280, creado 24/11/10 */
google_ad_slot = "1157205683";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> --->
<?php } ?>