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 LivingByFaithBlog.com
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">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="post">
<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>
<?php if ( function_exists( 'get_the_image' ) ) get_the_image( array( 'image_class' => 'alignleft' ) ); ?>
<?php the_excerpt (); ?>
<?php endwhile; ?>
<?php else : ?>
<span class="date">No Matches</span>
<h2>No matching results</h2>
<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('« Previous') ?></span> <span class="right"><?php next_posts_link('Next »') ?></span></p>
<?php include (TEMPLATEPATH . '/second.column.post.php'); ?>
<?php include (TEMPLATEPATH . '/third.column.shared.php'); ?>
<?php get_footer(); ?>
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.
That takes care of it. Thanks a lot!
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:
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!