How to set featured image from external url programmatically

You can use the post_thumbnail_html filter to set the post thumbnail programmatically to an external URL. Then you wold set the image URL in a Custom Field on the post writing screen metabox (in this example with a meta key of thumbnail_url): add_filter(‘post_thumbnail_html’, ‘custom_thumbnail_tag_filter’, 10, 3); function custom_thumbnail_tag_filter($html, $postid, $thumbnailid) { if (!$thumbnailid) { $src … Read more

Change Image folder Locations

The GUID is not the image’s URL. It typically does end up (coincidentally) being the original URL of the image, because it needs to be a unique identifier – but that’s all WordPress uses it for, as a unique identifier. Your code should successfully update the URLs of the featured images of posts, but only … Read more

WordPress cutting images size

Maybe the method you’re using to display the banner is using a specific image size. Usually wordpress can use a defined (or not) image size to display a media item, but if you check the media item, you’ll be able to see the original upload. Can you provide some code where you’re displaying the banner? … Read more