Show Featured Image to Post Page for Travelify WordPress theme

When Featured Image is set to a new post then it shows only on home page of blog (content shows news posts at home page) but when go to post page the featured image doesn’t show above the main content. How to do this.

That’s expected behavior for this theme but it is possible to add featured image for single post view as well.

You need to slightly edit content-extensions.php file which you can find in theme folder - library - structure.

There look for function

travelify_theloop_for_single

and add this code in place where you want your featured image to appear.

			<?php
			if( has_post_thumbnail() ) {
				$image = '';
	     		$title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) );
	     		$image .= '<figure class="post-featured-image">';
	  			$image .= '<a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">';
	  			$image .= get_the_post_thumbnail( $post->ID, 'featured', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';
	  			$image .= '</figure>';

	  			echo $image;
	  		}
  			?>

Personally I would add it above title but it really is up to you where and how you want it to be displayed. In order to add image on top of post title you should add previously mentioned code right above this section

			<header class="entry-header">
    			<h2 class="entry-title">
    				<?php the_title(); ?>
    			</h2><!-- .entry-title -->
  		</header>

Problem solved! thank you so much for help…

2nd question…

Can we use featured video as a featured image by using dailymotion video link?

Only if you are using plugin. I haven’t tested but based on description this plugin should do the trick: Featured Video Plus – WordPress plugin | WordPress.org