• Hey guys,

    How can I make an article’s featured image disappear? I’d still like to be able to upload it in the article though, what I don’t want is it to appear on any page. I tried removing

    <?php if ( has_post_thumbnail() ) : ?>
    	<figure class="post-thumbnail">
    		<?php the_post_thumbnail(); ?>
    	</figure>
    <?php endif; ?>

    from my loop. However it still appears in my articles, basically because haven’t removed it from my single.php yet. But isn’t there a cleaner way of doing this? Could I add a action in my functions.php and tell it to remove the uploaded featured image?

    The reason why I’d like to be able to still upload a featured image that doesn’t appear in the article is because of Jetpack and it’s Facebook sharing connection…

    Any help appreciated 🙂

The topic ‘Remove featured image with functions.php’ is closed to new replies.