I'm using WordPress 2.9 with enabled post thumbnail feature. I want convert some old articles to wordpress. I'm using wp_post_insert function and some post_meta function, but i want know, How to insert/set "post thumbnail"?
I'm using WordPress 2.9 with enabled post thumbnail feature. I want convert some old articles to wordpress. I'm using wp_post_insert function and some post_meta function, but i want know, How to insert/set "post thumbnail"?
Having the same question. How this feature works? I´m using the english default theme but can´t add any post thumbnail to my articles.
I got solution, it is working fine:
update_post_meta($new_post_id, '_thumbnail_id', $new_attach_id, TRUE);
--
@infected: did you checked http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/
@southdreamz: Thanks for the link! It´s working now. ;)
This topic has been closed to new replies.