Ну так вот есть тема для WP называется adsticle
Все сделанно на одной странице то есть в index.php и прочих страницах просто дана ссылка на loop.php
Так вот тут
http://www.vsegoto.16mb.com/ вверху текстовый банер он показывается и на главной и на странице с постом - что хочу сделать что бы после первого же поста показывать еще одну рекламу на главной....Но что бы на странице с постом она уже не отображалась... Как это сделать привожу код
Код:
<div class="content">
<center>*Код Рекламки от адсенса(вверху в красной рамочке)*</center>
<?php if ( have_posts() ) : ?>
<?php
if (is_search())
{
echo '<h1 style="font-style:oblique">';
printf( __( 'Search Results for: %s', 'adsticle' ), '<span>' . get_search_query() . '</span>' );
echo '</h1>';
};
if (is_tag())
{
echo '<h1 style="font-style:oblique">';
printf( __( 'Tag Archives: %s', 'adsticle' ), '<span>' . single_tag_title( '', false ) . '</span>' );
echo '</h1>';
};
?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if (!is_page()): ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'adsticle' ),
the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php if (trim(get_the_title()) != '') { the_title(); } else { echo ' '; }; ?></a></h1>
<div class="meta">
<?php _e('Ву', 'adsticle'); ?>: <?php the_author_link(); ?> |
<?php _e('Дата', 'adsticle'); ?>: <?php the_date(); ?>
<?php if (!is_page()): ?>
| <?php _e('Категории', 'adsticle'); ?>: <?php the_category(', '); ?>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="post_content">
<?php
if (!is_single() && !is_page()):
the_excerpt();
else:
if (is_single() && adt_get_option('ads_250-250-post', '') != '' ): ?>
<div style="float:left; margin:10px;">
<?php echo adt_get_option('ads_250-250-post'); ?>
</div>
<?php
endif;
the_content();
endif;
?>
</div>
<?php if (!is_single() && !is_page()): ?>
<div class="readmore">
<a href="<?php the_permalink() ?>#more" class="more-link"><?php _e('Читать дальше...', 'adsticle'); ?></a>
</div>
<div class="addcomment">
<?php comments_popup_link( __( 'Коментарии', 'adsticle' ), __( '1 Comment', 'adsticle' ), __( '% Comments', 'adsticle' ) ); ?>
</div>
<?php else: ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'adsticle' ), 'after' => '</div>' ) ); ?>
<?php endif; ?>
<?php if (get_the_tag_list()) : ?>
<div class="taggs">
<?php _e('Теги', 'adsticle'); ?>: <?php echo get_the_tag_list('',', ',''); ?>
</div>
<?php endif; ?>
</div>
<div class="clear"></div>
<?php endwhile; ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
</div>
<?php endif; ?>
<?php comments_template( '', true ); ?>
<?php else: ?>
<?php if (is_search()): ?>
<div class="post" style="padding-top:50px"><div class="post_content">
<?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'adsticle' ); ?>
</div></div>
<?php endif; ?>
<?php endif; ?>
</div>
Спасибо огромное!!!

