Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Home page has different pix for post than post page WordPress


I've got my home page set up to post excerpts from the 10 previous posts -- along with the pictures I put on those posts.

I wrote a post, put one picture on it, but then later changed the picture.

Now the old picture still shows on the home/excerpt page -- while the new picture is only on the full-post page.

I'd like the new picture to show on the home/excerpt page.

My site is

I'm using the "Get the Image" plugin

I put this line in after the first <div class="entry">
<?php if ( function_exists( 'get_the_image' ) ) get_the_image(); ?>

Here's my index.php code

* @package WordPress
* @subpackage Grid_Focus
<div id="filler" class="fix">
<div id="mainColumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="postMeta">
<p class="container">
<span class="date"><?php the_time('M j, Y') ?></span>
<span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
<div class="entry">
<?php if ( function_exists( 'get_the_image' ) ) get_the_image( array( 'image_class' => 'alignleft' ) ); ?>
<?php the_excerpt (); ?>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<div class="postMeta">
<p class="container">
<span class="date">No Matches</span>
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no matching results. Please trying your search again. If you feel that you should be staring at something a little more concrete, feel free to email the author of this site or browse the archives.</p>
<?php endif; ?>
<div id="paginateIndex" class="fix">
<p><span class="left"><?php previous_posts_link('&laquo; Previous') ?></span> <span class="right"><?php next_posts_link('Next &raquo;') ?></span></p>
<?php include (TEMPLATEPATH . '/'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
<?php get_footer(); ?>

Answers (5)


Navjot Singh answers:

Get the image plugin pulls the first available image. You may have removed that image's code from the post but its still very much attached to the post. To remove it click upload button on that post edit page, switch to gallery tab, click show button next to the old image and delete it.

SteveFuller comments:

That takes care of it. Thanks a lot!


Jerson Baguio answers:

If you used cache plugin try to clear all caches it might help you

SteveFuller comments:

I did try that -- didn't change anything.


Eli Scheetz answers:

just a guess but you probably just need to unattach the old pic in your Media Library.


Fahad Murtaza answers:

My experience with the plugin tells me that it gets the first image from the post. One solution is deleting the previous image or unattach it from the post using some plugin

Install this plugin

And unattach the old images from the posts. Hope it helps!


Francisco Javier Carazo Gil answers:

Hi Steve,

I have seen your site and the problem seems to be what Jerson says.

I recommend you do it:
1. Delete cache (it depends on plugins WP-Cache, WP Super Cache...)
2. If nothing happens, try to deactivate cache plugin and then reload, if OK activate again cache
3. Copy text of your entry, delete the entry and then create a new one with same content

Hope it helps!