• I have an issue where my featured images are replicated 8 times above the header of my posts as well as in the correct place at the start of my text, see example here:

    http://www.travelshorts.com/london-with-the-russians/

    Is there any way to remove the 8 extra images and just keep the correct one next to the text?

    This is what my functions.php looks like if that is the issue:

    <?php
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’Left Page Sidebar’));
    register_sidebar(array(‘name’=>’Right Page Sidebar’));
    register_sidebar(array(‘name’=>’Left Post Sidebar’));
    register_sidebar(array(‘name’=>’Right Post Sidebar’));
    register_sidebar(array(‘name’=>’Contact Page Sidebar’));
    register_sidebar(array(‘name’=>’India Right Page Sidebar’));
    // Add support for Featured Images if (function_exists(‘add_theme_support’)) { add_theme_support(‘post-thumbnails’); add_image_size(‘index-categories’, 150, 150, true); add_image_size(‘page-single’, 350, 350, true); }
    function InsertFeaturedImage($content) { global $post; $original_content = $content; if ( current_theme_supports( ‘post-thumbnails’ ) ) { if ((is_page()) || (is_single())) { $content = the_post_thumbnail(‘page-single’); $content .= $original_content; } else { $content = the_post_thumbnail(‘index-categories’); $content .= $original_content; } } return $content; } add_filter( ‘the_content’, ‘InsertFeaturedImage’ );

    ?>

    Thanks.

    Mark

The topic ‘Featured image displaying incorrectly’ is closed to new replies.