Upload image through URL?

When you link to an external image, WordPress will reference the external URL. media_handle_upload is meant to handle uploaded images that are now living on your server. So unless you’re telling the server to download the image from the external source and save it on your server, media_handle_upload won’t apply. It sounds like you’re building … Read more

custom image size not being fetched

It turns out WP got confused because i used the settings> medias screen to also set the “medium” dimensions to 670×290. This redundance seems to disable entirely both the “medium” and the “listing-post-thumbnail” dimensions. Replacing the medium dimension values to 0 and then regenerating the thumbnails solved the issue. Thanks to those who tried to … Read more

How can I set a post thumbnail image without making a featured image?

This is your theme specific to show featured image in single post view. I think you’re using Modern Style theme, just remove following code from single.php on line 14, now featured images only will be shown on tag/category archive pages (and I think on main page too ). <?php if ( function_exists(“has_post_thumbnail”) && has_post_thumbnail() ) … Read more

the_post_thumbnail not resizing

Updated the answer to match my latest comment: Changing <?php if (the_post_thumbnail()): ?> to <?php if (has_post_thumbnail()): ?> will probably solve things. Also, some must have developer plugins when working with featured images: Regenerate Thumbnails AJAX Thumbnail Rebuild