The problem is whenever I display a post containing gallery, it shows them all on front page same as within post. I want a function for posts on front page to display only the clickable featured image with read more below for posts have predefined featured image. And if the post has some specific category eg. video, it should just display video and below some sharing buttons.
This is what I achieved till now, being a newbie can't move further
function insertfeaturedimage($content) {
global $post;
if ( current_theme_supports( 'post-thumbnails' ) ) {
if (is_page() || is_single() || is_front_page()) {
$content = the_post_thumbnail('page-single');
$content .= $original_content;
}
}
return $content;
}
add_filter( 'the_content', 'InsertFeaturedImage' );
I want the above functionality to above function.
Any help appreciated.
