• amantini1

    (@amantini1)


    Hello staff,

    I wanted to submit to you a problem that I encountered when I publish an article. The image that I have set as a featured image does not appear.
    Can you help me solve it?

    Thanks so much.

    Best regards,

    Massimiliano

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amantini1

    (@amantini1)

    Ok i solved:

    i put this code in content-single.php under <div class=”entry-content clearfix”>

    if (has_post_thumbnail()) {
                            $image = '';
                            $title_attribute = get_the_title($post->ID);
                            $image .= '<figure class="post-featured-image">';
                            $image .= '<a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">';
                            $image .= get_the_post_thumbnail($post->ID, 'featured-blog-large', array(
                                            'title' => esc_attr($title_attribute),
                                            'alt' => esc_attr($title_attribute),
                                    )) . '</a>';
                            $image .= '</figure>';
                            echo $image;
                    }

    Now work it.

    Many Tks,

    Massimiliano

    Hi @amantini1 ,

    Glad to know that your problem has been solved.

    Regards,
    ThemeGrill Support Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No featured image in the Post’ is closed to new replies.