• thanks you for your help,

    <?php if ( has_post_thumbnail()) : ?>
    <div style=”float:left;margin:7px;”> ” title=”<?php the_title_attribute(); ?>” >
    <?php the_post_thumbnail(‘thumbnail’); ?>
    </div>
    <?php endif; ?>

    I am also facing these problem after placing the code i got the featured image. But it placed side of the post, i need the featured image after title and author info. if it is possible, please help me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonysmooth

    (@anonysmooth)

    Thanks again Janos for your help,

    I was wondering if someone solved anjaneyabattu’s issue. I also pasted that code in index.php at the location Janos said in this thread but nothing happened.
    For example, i don’t have a featured image when i make an article. I was expecting to have the post thumbnail at the top of my article but i have just the title. Thanks in advance,

    It looks like a lot of the code is missing… Can someone please put it in the back ticks?

    This line doesn’t look right:
    <div style="float:left;margin:7px;"> " title="<?php the_title_attribute(); ?>" >

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem with featured image.’ is closed to new replies.