• Resolved heikoppi

    (@heikoppi)


    Hi,

    i have to export and import standard wordpress content with some images. This all works very well, but the image galleries are not exported and imported correctly.

    Example Content:

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

    [gallery type="adaptive" ids="9591,9592,9593"]

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

    What is in export file:

    [gallery type="adaptive" ids="eyJ1cmwiOiJodHRwczpcL1wvZW52aWFtYmxvZy50ZXN0XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvU2Nob2VuZWNrX1JvdGhfQmlsZDEuanBnIiwidGl0bGUiOiJHcmFmZml0aS1Qcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBHZXN0YWx0dW5nIG1pdCBHZWlnZSIsImNhcHRpb24iOiIiLCJhbHQiOiJHcmFmZml0aSBQcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBOaWNvIFx1MjAxZUNlYnVcdTIwMWMgUm90aCwgR2VpZ2UsIFNraXp6ZSIsImRlc2NyaXB0aW9uIjoiR3JhZmZpdGkgUHJvamVrdCwgU2NoXHUwMGY2bmVjaywgTmljbyBcdTIwMWVDZWJ1XHUyMDFjIFJvdGgsIEdlaWdlLCBTa2l6emUgZGVzIE1vdGl2cyJ9,eyJ1cmwiOiJodHRwczpcL1wvZW52aWFtYmxvZy50ZXN0XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvU2Nob2VuZWNrX1JvdGhfQmlsZDIuanBnIiwidGl0bGUiOiJHcmFmZml0aS1Qcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBHZXN0YWx0dW5nIG1pdCBHZWlnZSIsImNhcHRpb24iOiIiLCJhbHQiOiJHcmFmZml0aSBQcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBOaWNvIFx1MjAxZUNlYnVcdTIwMWMgUm90aCwgR2VpZ2UiLCJkZXNjcmlwdGlvbiI6IkdyYWZmaXRpIFByb2pla3QsIFNjaFx1MDBmNm5lY2ssIE5pY28gXHUyMDFlQ2VidVx1MjAxYyBSb3RoLCBHZWlnZSwgZ2VzdGFsdGV0ZXMgTW90aXYifQ==,eyJ1cmwiOiJodHRwczpcL1wvZW52aWFtYmxvZy50ZXN0XC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvU2Nob2VuZWNrX1JvdGhfQmlsZDMuanBnIiwidGl0bGUiOiJHcmFmZml0aS1Qcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBHZXN0YWx0dW5nIG1pdCBHZWlnZSIsImNhcHRpb24iOiIiLCJhbHQiOiJHcmFmZml0aSBQcm9qZWt0LCBTY2hcdTAwZjZuZWNrLCBOaWNvIFx1MjAxZUNlYnVcdTIwMWMgUm90aCwgR2VpZ2UiLCJkZXNjcmlwdGlvbiI6IkdyYWZmaXRpIFByb2pla3QsIFNjaFx1MDBmNm5lY2ssIE5pY28gXHUyMDFlQ2VidVx1MjAxYyBSb3RoLCBHZWlnZSwgZmVydGlnZXMgS3Vuc3R3ZXJrIn0="]

    Result:

    The imported data includes the Shortcode with cryptic argument (ids).

    My question:

    Am i doing something wrong in the export or import settings? Does the plugin providing export and import of gallery images?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @heikoppi,

    Does the plugin providing export and import of gallery images?

    Yes, you just need to make sure that the “Export images from Gallery shortcodes in post content” option is enabled for the “Content” export element (it already is since we see the hashed IDs in your shortcode), and the “Scan through post content and import images wrapped in tags” option is enabled in the “Images” section of the import.

    If those options are enabled and it’s still failing, please open a support request about this issue at http://www.wpallimport.com/support/. We’ll have to check it directly on your site.

    Thread Starter heikoppi

    (@heikoppi)

    Thank you for your response.

    Yes, both Options in Export and Import are enabled:

    Export:
    Export images from Gallery shortcodes in post content

    Import:
    Scan through post content and import images wrapped in img tags

    Thread Starter heikoppi

    (@heikoppi)

    Maybe this is the problem:

    I did an import (database, uploads and everything else needed) into a local docker environment. This local environment has its on domain: https://my-project.test

    After creating the Export file i did a manually search and replace for all images in the CSV file (so they can be downloaded by WP All Import). I replaced “https://my-project.test/wp-content/uploads/../test.jpg” with “https://my-project.de/wp-content/uploads/../test.jpg”.

    So the hashed IDs in the shortcode belong to the local environment “https://my-project.test/” and WP All Import is not able to download the images from live environment.

    Thread Starter heikoppi

    (@heikoppi)

    The problem was the local environment. The hash values generated were based on the domain of the local development environment – so the imoprt could not be executed correctly.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Export and Import Image Galleries (Shortcode [gallery])’ is closed to new replies.