みんな...ここで問題が発生します...
中間カテゴリのアーカイブ ページに広告を挿入したいのですが、状況は次のとおりです。
私のテーマ (Fasttheme) のカテゴリ アーカイブ ページには、カテゴリのリストの 1 つを選択すると、1 つのビューがあります。
総出力 選択したカテゴリ (10 件の投稿) 表示リスト カテゴリ アーカイブ ページ。
表示カテゴリ「おすすめ」 (1 件の投稿)
表示カテゴリ「おすすめ」 (2 件の投稿)
表示カテゴリ「おすすめ」 (3 件の投稿)
カテゴリ「おすすめ」を表示 (4 件の投稿)
<-- 位置広告 -->
カテゴリ「おすすめ」を表示 (5 件の投稿)
カテゴリ「おすすめ」を表示 (6 件の投稿)
表示カテゴリ「おすすめ」 (7 件の投稿)
カテゴリ「おすすめ」を表示 (8 件の投稿)
カテゴリ「おすすめ」を表示 (9 件の投稿)
カテゴリ「おすすめ」を表示 (10 件の投稿)
以下は、私のカテゴリ アーカイブ ページにあるコードです。
<div class="posta">
<h1><?php if(is_category()) { ?> <?php single_cat_title(''); ?> News and Pictures
<?php } elseif (is_day()) { ?><?php the_time('F jS, Y'); ?>
<?php } elseif (is_month()) { ?> <?php the_time('F, Y'); ?>
<?php } elseif (is_tag()) { ?> <?php single_tag_title(''); ?>
<?php } elseif (is_year()) { ?> <?php the_time('Y'); ?>
<?php } elseif (is_author()) { ?> Author
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archives
<?PHP } ?><?php if ( get_query_var('paged') ) { echo ' ('; echo __('page') . ' ' . get_query_var('paged'); echo ')'; } ?>
</h1>
</div>
<?php $postcounter = 1; if (have_posts()) : ?>
<?php while (have_posts()) : $postcounter = $postcounter + 1; the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); ?>
<div class="post post-<?php echo $postCount ;?>" style="width:755px;float:right"><?php include (TEMPLATEPATH . '/thumb.php'); ?>
<div class="posttitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="tags"><?php the_time('M jS Y') ?> | <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></div>
<?php echo excerpt(50); ?><?php if ( is_home() || is_category() || is_tag()) : ?> <?php endif; ?>
<p class="readmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">...learn more</a></p>
<div style="clear: both"></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="notfound"></div>
<div class="post"><center><h2>404 Not Found</h2></center></div>
<?php endif; ?>
私を助けてください。!