Removing Featured Image From WordPress Post Page?
-
Hi,
I have a big issue and don’t want to sound pessimistic, but don’t think it’s curable. I’ve spent the last while reading posts on this topic with no joy.
The main problem is that I am depending on these featured images for my homepage sliders and recent posts widget, but they are also appearing full size on the top of the actual post page where I don’t want them.
I have copied and pasted code from my themes content.php file as I think the issue is there – but if I as much as touch/remove something from this this code I get a syntax error on my post page. Also there is code similar to the below in other php files on the site.
Would really appreciate help, thanks.
if ( is_singular() && is_main_query() ) { if( of_get_option('blog_single_thumbnail', '1') == '1' && has_post_thumbnail() ) { ?> <div id="post-thumbnail"> <img src="<?php echo aq_resize( wp_get_attachment_url( get_post_thumbnail_id() ), wpex_img( 'post_width' ), wpex_img( 'post_height' ), wpex_img( 'post_crop' ) ); ?>" alt="<?php echo the_title(); ?>" /> </div><!-- /post-thumbnail --> <?php } /****************************************************** * Entries * @since 1.0 *****************************************************/ } else { ?> <article <?php post_class('post-entry clearfix'); ?>> <?php if( has_post_thumbnail() ) { ?> <div class="post-entry-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <img src="<?php echo aq_resize( wp_get_attachment_url( get_post_thumbnail_id() ), wpex_img( 'entry_width' ), wpex_img( 'entry_height' ), wpex_img( 'entry_crop' ) ); ?>" alt="<?php echo the_title(); ?>" /> <?php // hover overlay if( of_get_option('entry_overlay','1') == '1') { ?><span class="overlay <?php echo get_post_format(); ?>"></span><?php } // Sticky post star graphic if(is_sticky()) echo '<span class="sticky-overlay"></span>'; ?> </a> </div><!-- /post-entry-thumbnail --> <?php } ?> <div class="post-entry-details <?php if( !has_post_thumbnail() ) echo 'full-width'; ?>"> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <ul class="post-entry-meta clearfix"> <li><?php echo get_the_date(); ?> //</li> <li><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a>
- The topic ‘Removing Featured Image From WordPress Post Page?’ is closed to new replies.