WordPress.org

Ready to get started?Download WordPress

Forums

Featured image- Duplicate images showing on posts and categories (14 posts)

  1. artavenir
    Member
    Posted 2 years ago #

    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!

  2. artavenir
    Member
    Posted 2 years ago #

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

  3. keesiemeijer
    moderator
    Posted 2 years ago #

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

  4. selflove1979
    Member
    Posted 2 years ago #

    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/

  5. deepbevel
    Member
    Posted 2 years ago #

    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.

  6. deepbevel
    Member
    Posted 2 years ago #

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

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

    or

    <?/*php the_post_thumbnail();*/?>
  7. selflove1979
    Member
    Posted 2 years ago #

    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?

  8. deepbevel
    Member
    Posted 2 years ago #

    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.

  9. selflove1979
    Member
    Posted 2 years ago #

    I'm using the graphene theme.

  10. mmalpass
    Member
    Posted 1 year ago #

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

  11. ShaHaiAli
    Member
    Posted 1 year ago #

    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???

  12. shayney
    Member
    Posted 1 year ago #

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

  13. cscottb
    Member
    Posted 1 year ago #

    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.

  14. mda1125
    Member
    Posted 1 year ago #

    Thank you. This fixed my issue as well.

Topic Closed

This topic has been closed to new replies.

About this Topic