Featured image appears in posts
-
site -> http://santedulce.ro
I want to delete the featured image appearing in the single posts (not on the blog… where i can see all the posts, only in the selected post.)
my single.php is
<?php /* Display single blog post. */ ?> <?php get_header(); ?> <div class="pagetitle"> <div class="container titleinner"> <span class="titlestart">{</span> <div class="maintitle fadeInUp"><?php the_title(); ?></div> <span class="titlestart">}</span> </div> </div> <div class="container blog-content"> <div class="row-fluid"> <div class="span9"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article"> <?php get_template_part( 'content', get_post_format() ); ?> <div class="tags"> <?php the_tags(); ?> </div> <div class="data"> <?php the_date(); ?> </div> <?php comments_template( '', true ); ?> <?php paginate_comments_links();?> </article> <?php endwhile;?> </div> <div class="span3 sidebar"> <?php if ( is_active_sidebar( 'Blog' ) ) : ?> <?php dynamic_sidebar( 'Blog' ); ?> <?php else : ?> <?php endif; ?> </div> </div> </div> <?php get_footer(); ?>And this is the blogcontent.php
<?php /* *Display all Blog Posts */ ?> <?php if ( has_post_format( 'quote' ) || has_post_format( 'status' ) ) { ?> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <div class="blog-thumb"> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> </div> <?php endif ?> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> </li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_content(); ?> </div> <div class="quoteauthor"> <span>- </span><?php echo get_post_meta( $post->ID, 'quote_a', true );?> </div> <?php } else if ( has_post_format( 'link' )) { ?> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <div class="blog-thumb"> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> </div> <?php endif ?> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_content(); ?> </div> <div class="quoteauthor"> <a href="<?php echo get_post_meta( $post->ID, 'link_w', true );?>" target="_blank"><?php echo get_post_meta( $post->ID, 'link_n', true );?></a> </div> <?php } else if(has_post_format('video') || has_post_format('audio')) { $video_description = get_post_meta( $post->ID, 'video_description', true ) ; $pattern = '~<iframe.*</iframe>~'; if(preg_match($pattern, $video_description)) { $var=$video_description; }else { $var = apply_filters('the_content', "[embed]" . $video_description . "[/embed]");} ?> <div class="blog-thumb"> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> <?php endif ?> <div class="videoblock"> <?php echo $var; ?> </div> </div> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_excerpt(); ?> </div> <?php } else if(has_post_format( 'gallery' )) { ?> <div class="blog-thumb"> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> <?php endif ?> </div> <div class="gallery-thumb"> <?php gallery_slideshow($post);?> </div> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_excerpt(); ?> </div> <?php } else if(has_post_format( 'aside' ) || has_post_format( 'image' )) { ?> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <div class="blog-thumb"> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> </div> <?php endif ?> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_excerpt(); ?> </div> <?php } else if(has_post_format( 'chat' )) { ?> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <div class="blog-thumb"> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> </div> <?php endif ?> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid chat_post contenttext"> <?php the_content(); ?> </div> <?php } else { ?> <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?> <div class="blog-thumb"> <a href="<?php the_permalink();?>"> <?php the_post_thumbnail('post-thumbnail');?> <!-- set image here !--> </a> </div> <?php endif ?> <h1 class="permalink"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1> <div class="row-fluid post-meta-outer"> <ul class="post-meta-fields"> <li><span class="title"><?php _e("Posted In ", "windcake"); ?>:</span> <?php the_category(', '); ?></li> <li><span class="title date-title"></span> <span class="date-color"><?php the_time(get_option('date_format'));?></span></li> <li><span class="title by-title"></span> <?php the_author_posts_link(); ?></li> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) { ?> <li> <span class="title tag1-title1"></span> <span class="tags"> <?php the_tags('', ', ', ''); ?> </span> </li> <?php } ?> <li><span class="title comment-title"></span> <?php comments_popup_link(__('0 Comments', 'windcake'), __('1 Comment', 'windcake'), __('% Comments', 'windcake')); ?></li> </ul> </div> <div class="row-fluid contenttext"> <?php the_excerpt(); ?> </div> <?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Featured image appears in posts’ is closed to new replies.