inpsyde / wpml2mlp

Convert posts from an existing WPML multilingual site via WXR Export/Import for MultilingualPress
https://wordpress.org/plugins/wpml-to-multilingualpress/
GNU General Public License v2.0
10 stars 6 forks source link

Export on every time post_parent = 0 #47

Closed derpixler closed 8 years ago

derpixler commented 8 years ago

Export are all fine but wpml create for attachments in every Language custom items.

Array
(
    [en_US] => Array
        (
            [posts] => Array
                (
                    [0] => WP_Post Object
                        (
                            [ID] => 57868
                            [post_author] => 688
                            [post_date] => 2016-01-18 11:08:33
                            [post_date_gmt] => 2016-01-18 10:08:33
                            [post_content] => 
                            [post_title] => photo-1447752875215-b2761acb3c5d (1)
                            [post_excerpt] => 
                            [post_status] => inherit
                            [comment_status] => closed
                            [ping_status] => closed
                            [post_password] => 
                            [post_name] => photo-1447752875215-b2761acb3c5d-1
                            [to_ping] => 
                            [pinged] => 
                            [post_modified] => 2016-01-18 11:08:33
                            [post_modified_gmt] => 2016-01-18 10:08:33
                            [post_content_filtered] => 
                            [post_parent] => 57861
                            [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                            [menu_order] => 0
                            [post_type] => attachment
                            [post_mime_type] => image/jpeg
                            [comment_count] => 0
                            [filter] => raw
                         )

                )
        )
    [de_DE] => Array
            (
                [posts] => Array
                    (
                        [0] => WP_Post Object
                            (
                                [ID] => 57871
                                [post_author] => 688
                                [post_date] => 2016-01-18 11:08:33
                                [post_date_gmt] => 2016-01-18 10:08:33
                                [post_content] => 
                                [post_title] => photo-1447752875215-b2761acb3c5d (1)
                                [post_excerpt] => 
                                [post_status] => inherit
                                [comment_status] => closed
                                [ping_status] => closed
                                [post_password] => 
                                [post_name] => photo-1447752875215-b2761acb3c5d-1-2
                                [to_ping] => 
                                [pinged] => 
                                [post_modified] => 2016-01-18 11:08:33
                                [post_modified_gmt] => 2016-01-18 10:08:33
                                [post_content_filtered] => 
                                [post_parent] => 0
                                [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                                [menu_order] => 0
                                [post_type] => attachment
                                [post_mime_type] => image/jpeg
                                [comment_count] => 0
                                [filter] => raw
                            )
                    )
            )
    [nl_NL] => Array
            (
                [posts] => Array
                    (
                        [0] => WP_Post Object
                            (
                                [ID] => 57869
                                [post_author] => 688
                                [post_date] => 2016-01-18 11:08:33
                                [post_date_gmt] => 2016-01-18 10:08:33
                                [post_content] => 
                                [post_title] => photo-1447752875215-b2761acb3c5d (1)
                                [post_excerpt] => 
                                [post_status] => inherit
                                [comment_status] => closed
                                [ping_status] => closed
                                [post_password] => 
                                [post_name] => photo-1447752875215-b2761acb3c5d-1-2
                                [to_ping] => 
                                [pinged] => 
                                [post_modified] => 2016-01-18 11:08:33
                                [post_modified_gmt] => 2016-01-18 10:08:33
                                [post_content_filtered] => 
                                [post_parent] => 0
                                [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                                [menu_order] => 0
                                [post_type] => attachment
                                [post_mime_type] => image/jpeg
                                [comment_count] => 0
                                [filter] => raw
                            )
                    )
            )
    [es_ES] => Array
            (
                [posts] => Array
                    (
                        [0] => WP_Post Object
                            (
                                [ID] => 57873
                                [post_author] => 688
                                [post_date] => 2016-01-18 11:08:33
                                [post_date_gmt] => 2016-01-18 10:08:33
                                [post_content] => 
                                [post_title] => photo-1447752875215-b2761acb3c5d (1)
                                [post_excerpt] => 
                                [post_status] => inherit
                                [comment_status] => closed
                                [ping_status] => closed
                                [post_password] => 
                                [post_name] => photo-1447752875215-b2761acb3c5d-1-2
                                [to_ping] => 
                                [pinged] => 
                                [post_modified] => 2016-01-18 11:12:00
                                [post_modified_gmt] => 2016-01-18 10:12:00
                                [post_content_filtered] => 
                                [post_parent] => 57876
                                [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                                [menu_order] => 0
                                [post_type] => attachment
                                [post_mime_type] => image/jpeg
                                [comment_count] => 0
                                [filter] => raw
                            )
                    )
            )
    [fr_FR] => Array
            (
                [posts] => Array
                    (
                        [0] => WP_Post Object
                            (
                                [ID] => 57870
                                [post_author] => 688
                                [post_date] => 2016-01-18 11:08:33
                                [post_date_gmt] => 2016-01-18 10:08:33
                                [post_content] => 
                                [post_title] => photo-1447752875215-b2761acb3c5d (1)
                                [post_excerpt] => 
                                [post_status] => inherit
                                [comment_status] => closed
                                [ping_status] => closed
                                [post_password] => 
                                [post_name] => photo-1447752875215-b2761acb3c5d-1-2
                                [to_ping] => 
                                [pinged] => 
                                [post_modified] => 2016-01-18 11:08:33
                                [post_modified_gmt] => 2016-01-18 10:08:33
                                [post_content_filtered] => 
                                [post_parent] => 0
                                [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                                [menu_order] => 0
                                [post_type] => attachment
                                [post_mime_type] => image/jpeg
                                [comment_count] => 0
                                [filter] => raw
                            )
                    )
            )
    [it_IT] => Array
            (
                [posts] => Array
                    (
                        [0] => WP_Post Object
                            (
                                [ID] => 57872
                                [post_author] => 688
                                [post_date] => 2016-01-18 11:08:33
                                [post_date_gmt] => 2016-01-18 10:08:33
                                [post_content] => 
                                [post_title] => photo-1447752875215-b2761acb3c5d (1)
                                [post_excerpt] => 
                                [post_status] => inherit
                                [comment_status] => closed
                                [ping_status] => closed
                                [post_password] => 
                                [post_name] => photo-1447752875215-b2761acb3c5d-1-2
                                [to_ping] => 
                                [pinged] => 
                                [post_modified] => 2016-01-18 11:08:33
                                [post_modified_gmt] => 2016-01-18 10:08:33
                                [post_content_filtered] => 
                                [post_parent] => 0
                                [guid] => http://www.anti-aging-lab.wp/wp-content/uploads/2016/01/photo-1447752875215-b2761acb3c5d-1.jpeg
                                [menu_order] => 0
                                [post_type] => attachment
                                [post_mime_type] => image/jpeg
                                [comment_count] => 0
                                [filter] => raw
                            )
                    )
            )
)