I posted over in the blogging area, but not getting any action so I'll post here. (mods please remove my old post) I'd like to add an {if} statement in my template so that my ads will not dispay on the main page, or that it will only display on individual post pages. My theme does not contain seperate templates for main and post. Here is the current code: <?php get_header(); ?> <?php get_sidebar(); ?> <hr /> <!-- google_ad_section_start --> <div id="content"> <script type="text/javascript"><!-- google_ad_client = "pub-1725522918851xxx"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel ="56572004x"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "008000"; google_color_url = "000000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php // Post dates off by default the_date('','<h2>','</h2>'); ?> <div id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="meta"><?php _e("Posted in"); ?> <?php the_category(',') ?> by <?php the_author() ?> on the <?php the_time('F jS, Y') ?> <?php edit_post_link(__('Edit This')); ?></div> <div class="main"> <?php the_content(__('(more...)')); ?> </div> </div> <!-- google_ad_section_end --> <div class="related"> <b><u><h3>Related Posts</h3></b></u><br> <?php related_posts(5, 10, '<li>', '</li>', '', '', false, false); ?> </div> <br> <div class="comments"> <?php wp_link_pages(); ?> Code (markup): The URL in question is www.bradsblog.net Thanks!
the following is how you note that you are on the main page: if (is_paged() =="" ) Code (markup): I would think if you place a "NOT" in the statement you should get the transverse. This will work in the newer versions of wordpress. Example of the code at work listed in the URL for my blog. Good luck