WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hot to insert post thumnail - WP 2.9 (4 posts)

  1. palPalani
    Member
    Posted 4 years ago #

    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"?

  2. infected
    Member
    Posted 4 years ago #

    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.

    Screenshot

  3. palPalani
    Member
    Posted 4 years ago #

    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/

  4. infected
    Member
    Posted 4 years ago #

    @southdreamz: Thanks for the link! It´s working now. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic