Making a thumbnail if there exist a link with. jpg or .png extension in WordPress

1) Check out: http://codex.wordpress.org/Function_Reference/media_sideload_image 2) I found that WP function to be somewhat limited to I wrote my own wrapper class/method. If you want to do the same you’re going to need PHP’s copy() function http://us2.php.net/manual/en/function.copy.php as well as WP’s wp_insert_attachment() http://codex.wordpress.org/Function_Reference/wp_insert_attachment Unfortunately, I haven’t pushed my code to GitHub just yet, so for now … Read more

How to strip thumb from widget

You should remove this part: <?php if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ) { ?> <div class=”widget-img”> <a href=”https://wordpress.stackexchange.com/questions/116533/<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_post_thumbnail(‘lists’); ?></a> </div><!–widget-img–> <?php } ?> . Just to explain… This conditional statement askes… if there is a thumbnail run the code in between me and my closing tag… <?php if … Read more

Thumbnail Look For WP

This should do the trick. http://codex.wordpress.org/Function_Reference/add_image_size just create your own image size you want to best fit your website. you could then use this plugin to regenerate all your thumbnails. http://wordpress.org/plugins/regenerate-thumbnails/