• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Why ADS can't display at bottom of post on Home page ?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Why ADS can't display at bottom of post on Home page ?

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 30, 2015 at 7:50 pm #167096
    wparrow
    Member

    Hi 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 me

    This 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(); ?> &middot; <?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 #167098
    wparrow
    Member

    Just clear the cache and see it's working

    October 4, 2015 at 9:33 am #167384
    wparrow
    Member

    Hi
    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 #167706
    Tom
    Participant

    The 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 ]

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble