Issues with Featured Image, not showing up, then showing up with a duplicate in categories

  • Anonymous

    #9477

    Okay, I am having some issues with the featured image showing up in my single posts.

    See example

    I am using Easy Digital Downloads, to create the ebook pages.

    So I found the following code:

    /**
    * Add featured image as thumbnail to posts
    */
    function graphene_post_thumbnail(){
    if( has_post_thumbnail() && is_single() ) the_post_thumbnail( 'thumbnail', array( 'class' => "attachment-$size alignleft" ) );
    }
    add_action( 'graphene_before_post_content', 'graphene_post_thumbnail' );

    Which works, but it causes a different problem!

    Then when I look at my categories it appears correctly more or less, see example

    When I add that code I found into the functions.php file, it then causes a duplicate thumbnail in the categories area, so instead one thumbnail, I have two!

    Is there a way to fix this?

    Thank you kindly!

    Amy

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.