Adding thumb/featured image to post.
-
Hi all,
I am not so sure this is the right place to post this… This is not through admin but via scripting/coding.
I am creating a plugin that will create posts from external data. I have managed to insert posts and post meta, etc, but I haven’t yet found out how to add a feature image to the post. I know how the images are saved through the wordpress insert functions but setting posts feature images is what I don’t know how.
Does anyone know the functions for this task? I can’t find it in WordPress reference.
Thanks.
The topic ‘Adding thumb/featured image to post.’ is closed to new replies.