• Our Blog is https://www.ledlights101.com
    Just upgraded to 3.0.3

    My cropped thumbnail images don’t show as the featured image when selected, the image reverts to the thumbnail image wordpress created automatically. The thumbnail I created does show as the thumbnail in the media library and in the featured image selector. But, when I select it as the featured image the old image instantly appears under the featured image on the posting screen rather than the thumbnail I created. I am selecting the thumbnail size, then clicking on Use as Featured Image and updating the posting. I have cleared my browser cache, deleted the images, renamed them and uploaded them again, but nothing seems to work. I am new to wordpress, but this was working before, but stopped working in the last week or so. Not sure if it is caused by the upgrade to 3.0.3 or not, but it seems suspect to me. Any help or advice?

Viewing 12 replies - 16 through 27 (of 27 total)
  • edit the file loop-blog.php..

    search for this code.. it should start from the 27th line..

    <div class="postimg">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/functions/timthumb.php?src=<?php
    				 	if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
    						echo $thumbnail[0];
    					} else {
    						$postimage = get_post_meta($post->ID, 'post-image', true);
    						if ($postimage) {
    							echo $postimage;
    						} else {
    							echo catch_that_image();
    						}
    					}
    					?>&h=<?php echo $xs_thumbnail_height ?>&w=<?php echo $xs_thumbnail_width ?>&s=1" width="<?php echo $xs_thumbnail_width ?>" height="<?php echo $xs_thumbnail_height ?>" alt="<?php the_title(); ?>" /></a>
    			</div><!-- /postimg -->

    replace the code with the following code..

    <div class="postimg">
    					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php
    				 	if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) {
    						echo $thumbnail[0];
    					} else {
    						$postimage = get_post_meta($post->ID, 'post-image', true);
    						if ($postimage) {
    							echo $postimage;
    						} else {
    							echo catch_that_image();
    						}
    					}
    					?>" width="<?php echo $xs_thumbnail_width ?>" height="<?php echo $xs_thumbnail_height ?>" alt="<?php the_title(); ?>" /></a>
    			</div><!-- /postimg -->

    refresh the main blog page.. and let me know if that part of your problem is solved.. ??

    Thread Starter ColorKey

    (@colorkey)

    Did that, but nothing changed, still doing the same thing. Anything else I can try?

    i dont know which page your looking at.. but this page https://www.ledlights101.com/ seems like your thumbs are now good to go.. ?

    Thread Starter ColorKey

    (@colorkey)

    Maybe you have misunderstood the issue. Thumbnails are posting, but I am not able to crop the thumbnail to appear the way I want it to. timthumbs seems to be cropping them for me, which is ok sometimes, but other times it doesn’t do such a good job.

    If you look at this post, timthumbs has cut off the guys head for the thumbnail. I don’t want that to happen, but I have no way of correcting it at the moment.
    https://www.ledlights101.com/?p=143

    i dont know if u know this.. but before my solution i couldnt see thumnails on your site.. after u did what i told you thumbnails are visibe.. and as per your example (https://www.ledlights101.com/?p=143)
    this example is on a post page.. what i told you to edit was only the main loop page.. we havent gotten to editing that as yet.. once we are done you will get to where you want to go.. one step at a time. ??

    Thread Starter ColorKey

    (@colorkey)

    Ok I see, I am just being impatient and getting ahead of you here. ok I have the loo-blog.php edit back in place and your right, it is posting the thumbnails automatically. Thanks

    So, what is next?

    yeah actually.. i did some more testing on my end and what file edits are done was enough.. now u just need to crop your thumbnail as you want.. and insert it as the featured image..

    see this link.. https://dl.dropbox.com/u/2780608/wordpress_forum/featured_image_crop.jpg
    it is important that u need to crop all image sizes.. and then u will see the featured image like the way you cropped it..

    Thread Starter ColorKey

    (@colorkey)

    Cropping still doesn’t work, if I crop the image it shows the cropped version in the media library, but reverts back to the automatic thumbnail immediately in the featured image and on the live site.

    I really appreciate your help so far, timthumbs does seem to be doing a better job of creating the thumbnails than it was, using the whole image rather than cropping it. But, I would still like to be able to crop some of them myself.

    try this..
    1. select the image in the media gallery, and say edit..
    2. crop it as you want.. and then click the crop button..
    3. select apply changes to all image sizes.
    4. click the save button.. **it doesnt auto save**
    5. close media library..
    6. go to the desired post that you want to change the featured for..
    7 if featured image exist.. removed featured image..
    8 now tell it to use the newly cropped image from the library..

    it has to work.. it works at my end with the same theme, save settings, same edits.. do u have team viewer?

    Thread Starter ColorKey

    (@colorkey)

    Nope, didn’t work, still doing the same thing. Could it be caching the images somewhere? I have cleared my browser cache, but that did nothing. Don’t have Team Viewer, sorry. Maybe I have a plugin that is interfering? I don’t have that many plugins though. For now I think it’s ok. On the few that I want to change I will just create a thumbnail manually. Again, thank you for at least getting timthumbs to do a better job with the thumbnails.

    there is a cache that timbtumbs makes.. its inside the theme/functions folder tho i doubt that is the problem.. since we have currently disabled timbthumb from the theme.. though i still find it very strange that your problem is not solved.. is there a way i can use or see your admin panel..? i think thats the only way for a solution now..

    sorry, ill get back to you tomm, we can still make this work, its a little late here (2:56AM) in India, need to get some sleep, we will get it done tomm, there is another way around using custom fields, maybe u can read about it.

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Cropped Thumbnail won't appear as Featured Image’ is closed to new replies.