• I want to show the full blog post with image after clicking the read more button.Now Only the full blog is showing but the featured image is not showing.How do I solve it.Please help

Viewing 6 replies - 1 through 6 (of 6 total)
  • have you check single.php ?
    call this function after this class
    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php
    // Post thumbnail.
    twentyfifteen_post_thumbnail(‘full’);
    ?>
    check this for more idea: https://codex.wordpress.org/Function_Reference/the_post_thumbnail

    Thread Starter mridulcse

    (@mridulcse)

    Thanks a lot @ Ahir Hemant

    Thread Starter mridulcse

    (@mridulcse)

    there is no such class in single.php.it is in the content-single.php file.I am using minamaze theme.when I call this function in content-single.php file a error occurs “Fatal error: Call to undefined function Minamaze_post_thumbnail() in /home/hasan4/public_html/wp-content/themes/minamaze/single.php on line 13” what should I do solve it

    here is your content-single.php
    paste this code:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php
    /**
     * The Single Post content template file.
     *
     * @package ThinkUpThemes
     */
    ?>
    
    		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<?php echo the_post_thumbnail('full');?>
    
    		<?php thinkup_input_postmeta(); ?>
    
    		<div class="entry-content">
    			<?php the_content(); ?>
    		</div><!-- .entry-content -->
    
    		<?php edit_post_link( __( 'Edit', 'lan-thinkupthemes' ), '<span class="edit-link">', '</span>' ); ?>
    
    		</article>

    i have just check in my local and its working fine here, if not then try to activate another theme and check or may be some plugin issues
    try it once and let me know
    have a great Monday!!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @hemant-ahir Thanks for the help and advice but could you also recommend creating and activating a child theme of that one first? 😉

    https://codex.wordpress.org/Child_Themes

    If @mridulcse make those changes and the theme gets updated then all that work will be erased.

    @jan Demnowski
    Yeah i just forget it, Sorry

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Blog post’ is closed to new replies.