Community Forums › Forums › Archived Forums › General Discussion › Why ADS can't display at bottom of post on Home page ?
- This topic has 3 replies, 2 voices, and was last updated 8 years, 1 month ago by
Tom.
-
AuthorPosts
-
September 30, 2015 at 7:50 pm #167096
wparrow
MemberHi all experts !
I set my WordPress display full post content on home page and use a plugin name "Quick Adsense" to display ADS at the end of post. That's mean Adsense ADS will display at home page and archive page. But in my case, ADS only display in category page and archive page without display on home page. I don't known that's problem of the code. Please help meThis is the index.php file content, it will call content-standard.php file
<?php get_header(); ?> <section class="content"> <?php get_template_part('inc/page-title'); ?> <div class="pad group"> <?php get_template_part('inc/featured'); ?> <?php if ( have_posts() ) : ?> <?php if ( ot_get_option('blog-standard') == 'on' ): ?> <?php while ( have_posts() ): the_post(); ?> <?php get_template_part('content-standard'); ?> <?php endwhile; ?> <?php else: ?> <div class="post-list group"> <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?> <?php get_template_part('content'); ?> <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?> </div><!--/.post-list--> <?php endif; ?> <?php get_template_part('inc/pagination'); ?> <?php endif; ?> </div><!--/.pad--> </section><!--/.content--> <?php get_sidebar(); ?> <?php get_footer(); ?>
and here is the content-standard.php file content
<article id="post-<?php the_ID(); ?>" <?php post_class('group post-standard'); ?>> <div class="post-inner post-hover"> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php if ( has_post_thumbnail() ): ?> <?php the_post_thumbnail('thumb-standard'); ?> <?php elseif ( ot_get_option('placeholder') != 'off' ): ?> <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-standard.png" alt="<?php the_title(); ?>" /> <?php endif; ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?> <?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?> </a> <?php if ( comments_open() && ( ot_get_option( 'comment-count' ) != 'off' ) ): ?> <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a> <?php endif; ?> </div><!--/.post-thumbnail--> <div class="post-content"> <h2 class="post-title"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2><!--/.post-title--> <p class="post-byline"><?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?> · <?php the_time(get_option('date_format')); ?> in <?php the_category(' / '); ?></p> <?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?> <div class="clear"></div> <div class="entry"> <div class="entry-inner"> <?php the_content(); ?> <?php wp_link_pages(array('before'=>'<div class="post-pages">'.__('Pages:','hueman'),'after'=>'</div>')); ?> </div> <div class="clear"></div> </div><!--/.post-content--> <?php the_tags('<p class="post-tagsh"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?> </div><!--/.post-inner--> </article><!--/.post-->
I though I did something not correct at all at content-standard.php to display full post content
Thanks for your help.
http://www.whateverfree.com/portal/September 30, 2015 at 10:27 pm #167098wparrow
MemberJust clear the cache and see it's working
October 4, 2015 at 9:33 am #167384wparrow
MemberHi
This is not a cache problem, I even disabled the cache plugin and server side cache but ADS doesn't display on my site. It's display well on the category, archive and single page. (same ads code).Thanks
October 8, 2015 at 6:53 pm #167706Tom
ParticipantThe theme 'hueman' is not Genesis-powered. You'll have better luck with the plugin or theme author.
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ] -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.