I don’t have a code example to test atm but to download images via an URL, in your case after $image = wp_remote_get( $fr_news_thumbnail_url );
you can use the function:
media_sideload_image($file, $post_id, $desc);
http://codex.wordpress.org/Function_Reference/media_sideload_image
Related Posts:
- How to Fix HTTP Error When Uploading Images?
- Minimum Dimensions Requirement for Featured Image?
- Add Image Dimensions to Media Library Tab on Media Upoader
- Custom post type thumbnail / Media Library WP_DEBUG notice [closed]
- Replicate featured image functionality
- Need clear explanation about medias/files/attchments
- How to replace featured image upload option with the post media image option
- media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation
- How to bring files from the upload directory to the media gallery?
- WordPress image crop probems
- Images uploaded on frontend display correctly but not in media editor.
- Thumbnail (featured image) and Media Library cleanup queries help needed
- Set featured image from auto generated video thumbnail url php
- After migrating media library is not showing thumbnails
- How to modify Media Library images DPI [ image quality down to make small in size ] [closed]
- How do I regenerate thumbnails?
- Add Title Attribute to WordPress Image the_post_thumbnail
- Display Category Thumbnail and links in Woo commerce
- Replacing Gutenberg Featured Image control?
- oEmbed, thumbnails and wordpress
- the_post_thumbnail scaling not hard cropping
- Featured Image Inherited from Parent Page
- Change wording of default thumbnail metabox
- Specific featured image for each category
- how to pull images with no add_theme_support(‘post_thumbnails’)
- Can WordPress crop only the post thumbnails?
- Query the post which have a thumbnail
- How to show a featured image as current?
- How can I get a different image size, if all I have is the link?
- Show current page featured image in sidebar
- Importing featured image to posts, duplicates the image
- PDF Image in content
- Why does the Hard Crop option Scale?
- Post Thumbnails multiple sizes
- Long Post Title Misaligning Grid with Featured Image
- How to add multiple featured images to post/page without a plugin
- How do I set “Upload Image” as detault “Set Featured Image” window?
- Featured Image won’t display on Posts page
- Get post thumbnail from subpages with a foreach loop
- Getting images to show up in RSS Reader
- how i can increase Featured thumbnails size?
- the_post_thumbnail() Custom sizes not display correctly
- Set_post_thumbnail not resizing images
- How to inject attributes into get_the_post_thumbnail?
- MultiPostThumbnails for Custom Post Type
- Muliple featured images (or just images) per post
- WordPress Featured Image function recreate
- Using Featured Image as Hero Background
- wp_get_attachment_image_src match smallest edge
- Can’t Set Featured Image [closed]
- Resize post thumbnail produces horrible image quality..Any help?
- Original image not saving?
- Post thumbnail outside of loop
- query_posts adding two “post-entry” divs
- Display a thumbnail outside of the loop for a page
- How to use get_the_title with text on the ‘alt’ of the_thumbnail array?
- remove_image_size doesn’t seem to be working
- Get Featured Image Outside Loop Not Working
- Responsive scaling of image for the_post_thumbnail() [closed]
- images not showing despite using add_theme_support(‘post-thumbnails’);
- post thumbnail: increase dimension if smaller than… Possible?
- Displaying caption with featured image
- add_theme_support post-thumbnails not working
- Trying to show WordPress category query result as background image
- How risize a thumbnail?
- custom thumbnail image size not working
- Comparison Operators not working for conditional author post thumbnails
- Assign SQL ‘post_thumbnail’ column as featured image
- Default thumb – how to set it
- How to get featured image thumbnail to open larger version in attachment page?
- How to update custom image sizes?
- My Gallery Photos are showing in the post’s excerpts
- featured images twenty eleven theme
- Picture inserted in the post not showing in “Gallery”
- featured image is not showing
- How to change the format of thumbnails into wordpress theme?
- How to calculate the sum of all featured thumbnail height on WordPress?
- How to create thumbnails programmatically?
- Missing image size
- Usage of add_image_size (for featured image)
- Featured image: Dynamic image sizes when enlarged with javascript
- Smaller Size for featured images
- Featured image doesn’t appear in Blog index
- Remove Featured Image based on Date
- How to show only 2nd featured img on home/blog
- Echo recent posts each with its own respective featured image
- How to get post thumbnail to be equal to set media size
- Add notice to add image popup
- Mass/Bulk assign featured images to posts
- setting featured image is not working while running script in background, works when running that script from browser
- WordPress save thumbnail but don’t show it [closed]
- How to modify responsive images in post thumbnails
- get_the_post_thumbnail() – Invalid argument supplied for foreach() in /wp-includes/post-thumbnail-template.php on line 64
- Different thumbnail size than actual picture in post
- How to get the featured image inside of a single-.php template?
- Where is the template from the_post_thumbnail()?
- Get Post Thumbnail Outside of Loop
- Theme:Twenty Fourteen, How to remove featured image on single post page for particular category
- Strange image artifact on font-page thumbnail image
- Delete post media except featured image