• Hello all WP users

    I’m currently running Juventus Norge as a Textpattern installation. I’ve successfully imported posts, users, categories and everything else needed.

    My problem:
    Textpattern uses a row (table.textpattern.Image) in the post table (table.textpattern) to get image data from table.txp_images. The problem is that table.textpattern.id has auto_increment, but when importing the posts into wp_posts, the auto incrementing ignores the previously skipped id’s.

    Practical example of problem: The newest article id is 861 in table.textpattern, but 830 in table.wp_posts.

    What I need to do:
    I need to get the corresponding image-id into table.wp_postmeta. It looks like this:

    wp_postmeta
    |—meta_id—|—post_id—|—meta_key—|——meta_value——|
    |——4——|—-830——|—-image—–|——–1005.jpg——|

    Any clever minds out there? Hope you understand what I’m trying to do. 🙂

    Thank you very much. Thomas

The topic ‘Article image id from TXP to WordPress’ is closed to new replies.