Hi I will Give away any domain of your chice to you if you will fix this thing out. or just tell me how to fix it. I have a Cell Phone wares WORDPRESS BLOG. on Home or Index Page I want to show adsense ads before the first post and seconf block under second post. and for single posts i want to show the adsene block rite under the post tilte and second Before the download Button. How can it be done? Thanks
Find <?php the_title(); ?> and add your AdSense code ( depends on where you want your ads to be shown ). The same with "at the end of each post" - add your code after <?php the_content(); ?> !
<?php session_start();?> <?php get_header(); ?> <div class="content"> <div class="left"> <?php if (have_posts()) : ?> <div class="border-sep"> <?php ot_ads('category'); ?> <div class="title"><h1><?php wp_title(); ?></h1></div> <ul class="recent"> <?php if (is_category()) { $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != "") { echo "<div class=\"page-children article\"> <ul>"; wp_list_categories('orderby=id&show_count=0&title_li=&child_of='.$this_category->cat_ID); echo "</ul> </div>"; } } ?> <?php while (have_posts()) : the_post(); ?> <li id="post-<?php the_ID(); ?>"> <div class="a-box"> <?php ot_post_gravatar(40);?> <a class="a-title" title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php ot_title_limit('53') ?></a> <div class="info"> <span class="valign">By <?php the_author_posts_link() ?> on <?php the_time(ot_lang( 'date_format' )) ?> | <?php comments_popup_link( ot_lang( 'no_comments' ), ot_lang( '1_comments' ), '%' . ot_lang('comments_word') );?><img src="<?php bloginfo('stylesheet_directory'); ?>/img/icons/comments.gif" alt="<?php comments_number('');?> <?php echo ot_lang( 'comments_word' ); ?>" border="0" class="valign-img" /> <?php edit_post_link(ot_lang( 'edit_this' ), ' | ', '<img class="valign-img" src="'. get_option('home') .'/wp-content/themes/one-theme/img/icons/edit.gif" alt="' .ot_lang( 'edit_this' ). '" border="0" />'); ?></span></div> <?php ot_thumb_large(); ?> <div class="article" style="border:0;"> <?php ot_the_content(); ?> </div> <div class="clear"></div> </div> </li> <?php endwhile; ?> </ul> <?php ot_paginate();?> <div class="adsense-category-bottom"><?php ot_ads('cat-bottom'); ?></div> <?php else : ?> <?php include 'error.php';?> <?php endif; ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> Code (markup): If This is the index code then where should i put the adsese? to show before first and secong post on home ?