Put this line in your function.php
add_theme_support( ‘post-thumbnails’ );
and use this code for image
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
Put this line in your function.php
add_theme_support( ‘post-thumbnails’ );
and use this code for image
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}