• catmaniax

    (@catmaniax)


    Hello everyone.

    I hope you can help me because I’ve been really struggling with this.

    I can see the featured image I set when I look at the post in the front page, but when I click “read more” to read the whole post the new page just displays the post and not the image.

    How can I fix this?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Michael

    (@alchymyth)

    if your theme does not do this already, add the_post_thumbnail() into the loop of single.php;
    https://developer.www.ads-software.com/reference/functions/the_post_thumbnail/

    details depend on your currently used theme;
    https://codex.www.ads-software.com/Forum_Welcome#Include_as_Much_Information_as_Possible

    Thread Starter catmaniax

    (@catmaniax)

    Thanks for the reply!

    Is there any plugin that you would recommend since I’m not very familiar with adding code?

    alexkhan01

    (@alexkhan01)

    Search your WordPress plug in sections in dashboard for post thumbnail

    Thread Starter catmaniax

    (@catmaniax)

    I did, but could not find any that works this way.

    alexkhan01

    (@alexkhan01)

    <?php the_post_thumbnail( ‘full’ ); ?>

    Add this in your single.php, wherever you would like the image to show. Above the content and under the title would be the best place in think

    Thread Starter catmaniax

    (@catmaniax)

    I cannot get it to show above the title and under the content.
    This is the code of my single.php

    get_header(); ?>
    
    	<div class="container">
    		<div class="row">
    			<div id="primary" <?php bavotasan_primary_attr(); ?>>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', get_post_format() ); ?>
    
    					<div id="posts-pagination" class="clearfix">
    						<h3 class="sr-only"><?php _e( 'Post navigation', 'arcade' ); ?></h3>
    						<div class="previous pull-left"><?php previous_post_link( '%link', __( '&larr; %title', 'arcade' ) ); ?></div>
    						<div class="next pull-right"><?php next_post_link( '%link', __( '%title &rarr;', 'arcade' ) ); ?></div>
    					</div><!-- #posts-pagination -->
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    			</div>
    			<?php get_sidebar(); ?>
    		</div>
    	</div>
    
    <?php get_footer(); ?>
    Thread Starter catmaniax

    (@catmaniax)

    Any help guys?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to see featured image INSIDE the post’ is closed to new replies.