mrcenturian
Forum Replies Created
-
Forum: Plugins
In reply to: If statement for page so ads dont showAnyone able to further assist with this?
Forum: Plugins
In reply to: If statement for page so ads dont showAnyone recommend another site so I can get help with this
Forum: Plugins
In reply to: If statement for page so ads dont showThat removes ads from all the pages even the home page
here is what I have
<?php get_header(); ?>
<div id="content"><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="post-content"><?php the_content('<p class="serif">View the recipe and directions »</p>'); ?>
<?php link_pages('<p>Pages: ', '</p>', 'number'); ?>
<?php if (is_home()) { ?>
<div class="g-ads"><center><script type="text/javascript"><!–
google_ad_client = "pub-XXXXXXXXXXX";
/* 468×60, created 3/2/08 */
google_ad_slot = "XXXXXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</div><?php } ?>
</div>
</div><?php endwhile; endif; ?>
</div><!–/content –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Adding code to postsWith some help it has been resolved here was the solution
adding the “& l t ;” and “& g t ;” without the spaces
These replaced the <>