Viste
03-05-2011, 08:12 AM
Hi all,
I am not so sure this is the right place to post this, but I have seen similar threads here... 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.
I am not so sure this is the right place to post this, but I have seen similar threads here... 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.