Use PHP to set Featured Image
-
I’ve come to a brick wall trying to set the featured image of a post with PHP. I’m using wp_insert_post() to make the post but I don’t see any option to set the featured image. I also can’t seem to find a function to set it.
What I specifically want to do was add a featured image from a url. The theme I’m using supports featured images and I’m currently manually entering them into posts.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Use PHP to set Featured Image’ is closed to new replies.