Timeline for How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 18, 2020 at 22:47 | comment | added | Jsilvermist | This code is working perfectly for me even though I had trouble with the original answer. | |
Nov 9, 2020 at 23:16 | comment | added | Zach Nicodemous | I can confirm that the modified code does not work, which is a shame as URL sideloading would be awesome! | |
Aug 28, 2019 at 17:09 | comment | added | Flimm | For some reason, this version gave me errors saying "A valid URL was not provided." , whereas Rob Vermeer's answer worked. | |
Sep 15, 2018 at 15:39 | comment | added | Mostafa Soufi | Using the WordPress native functions are the best practice, Thank you. | |
Mar 2, 2016 at 7:23 | history | answered | Jan Beck | CC BY-SA 3.0 |