• Hi, I have a bit of a problem using wordpress’ featured image for posts but the thing is whenever I create one for a post it shows up along with the attached image. So I will see a thumbnail and the attached image for that post when I view the page.

    My question now is, how do I get to use featured image on posts and categories but only show thumbnail images not with the attached images?

    Thank you and any help is appreciated!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter artavenir

    (@artavenir)

    I still have no luck in finding help on this. 🙁 Been searching for days now

    Moderator keesiemeijer

    (@keesiemeijer)

    Can you provide a link to a page demonstrating the problem?

    I’m having the same problem but I don’t know how to correct it…here is an example http://lovingtherealyou.com/category/woman-of-the-week/

    You guys will want to remove

    <?php the_post_thumbnail();?>

    from where ever you don’t want a featured image, most likely you’ll want to remove it from single.php.

    Most times people want it in archives/categories and the blog page only, but it is included in single.php by default as well.

    if you don’t want to remove it, you can comment it out, like this:

    <!-- <?php the_post_thumbnail();?> -->

    or

    <?/*php the_post_thumbnail();*/?>

    Thanks for your response! For some reason that code isn’t in my category or archice php, it’s not in my single php either, so If I comment it out, where should I insert it?

    If you don’t have the thumbnail code as I posted it, you obviously can’t remove what’s not there.
    What’s your theme? it may not help me much, but I’ll look into it. I’ve yet to encounter a theme which gets featured images but has no thumbnail code.

    I’m using the graphene theme.

    I’m having the same problem, I’m using the Lifestyle theme on Genesis though. Can anyone help?

    i had to use the featured image in all the posts of a category that task is achieved. now i have to show all these featured images in their perspective posts…

    anybody would like to help me so that i can accomplish my final task???

    I have the same problem on Genesis, haven’t been able to figure it out yet either.

    http://www.cscottbeardsley.com/

    Most of my posts have lots of videos, so the posts have text and urls; no images are attached. I use Thumbnail For Excerpts to display post images on the blog page, and either Video Thumbnail Auto-Feature or Video Thumbnails to set Featured Images for the videos.

    2 out of 3 themes that I try display duplicate thumbnail images on archive pages. The blog page in most cases comes out okay. In most cases, when there is an issue the html looks something like this:

    <div class="entry-content">
    <a href="http://www.cscottbeardsley.com/2012/09/17/japan-top-10-songs-billboard-japan-hot-100/">
    <img width="150" height="150" src="http://www.cscottbeardsley.com/wp-content/uploads/2012/09/035-150x150.jpg" class="alignleft tfe wp-post-image" alt="japan-top-10-songs-billboard-japan-hot-100" title="japan-top-10-songs-billboard-japan-hot-100"></a>
    <a href="http://www.cscottbeardsley.com/2012/09/17/japan-top-10-songs-billboard-japan-hot-100/"><img width="150" height="150" src="http://www.cscottbeardsley.com/wp-content/uploads/2012/09/035-150x150.jpg" class="alignleft tfe wp-post-image" alt="japan-top-10-songs-billboard-japan-hot-100" title="japan-top-10-songs-billboard-japan-hot-100"></a>

    So I have 2 images with the same class

    .alignleft.tfe.wp-post-image

    one right after the other.

    The only mention of thumbnails whatsoever in the Yoko theme template files was in content-two-col.php

    <?php if ( '' != get_the_post_thumbnail() ) :?>

    and functions.php (

    <add_image_size...?>

    and there was no effect at all when those were commented out.

    The Yoko theme by Elmastudio is offering up the most unique set of issues I have seen. It displays 3 images on the blog page, and 2 on the archive pages.

    The 3 images are in the form of 1:

    div.entry-details
    .attachment-thumbnail.wp-post-image
    #content.post.img.wp-post-image

    and 2

    div.entry-content
    .alignleft.tfe.wp-post-image
    #content.post.img.wp-post-image

    On the archive pages there is one of each of the above image setups.

    I have already switched out my theme and will continue to look for a solution, but any assistance would be much appreciated.

    Thank you. This fixed my issue as well.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Featured image- Duplicate images showing on posts and categories’ is closed to new replies.