• Resolved cirda

    (@cirda)


    Hi,
    how to add image ID to post description during xml file import

    
    <IMGURL_ALTERNATIVE>images1.jpg</IMGURL_ALTERNATIVE>
    <IMGURL_ALTERNATIVE>images2.jpg</IMGURL_ALTERNATIVE>
    ...

    Imgage are imported from external urls

    in the description of post it should look like this shortcode:

    [su_image_carousel source="media: ID1, ID2" controls_style="light" max_width="300" link="lightbox" target="self"]

    ID1, ID2 (looks like this 1,2,3,5,8,78) is ID imported images to post with all data from xml file.
    Thanks
    Regards

    • This topic was modified 4 years, 3 months ago by cirda.
    • This topic was modified 4 years, 3 months ago by cirda.
    • This topic was modified 4 years, 3 months ago by cirda.
    • This topic was modified 4 years, 3 months ago by cirda.
    • This topic was modified 4 years, 3 months ago by cirda.
    • This topic was modified 4 years, 3 months ago by cirda.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @cirda,

    how to add image ID to post description during xml file import

    Unfortunately, you would have to write custom code to do that.

    I think the easiest route would be to write a simple add-on with an image field: https://www.wpallimport.com/documentation/addon-dev/overview/. In the content, put something like “***SHORTCODE_GOES_HERE***” and then use pmxi_saved_post to replace it in the content with the image IDs imported via your add-on.

    Here’s some example code that should provide some inspiration for yours: https://d.pr/n/2aYREO.

    Plugin Author WP All Import

    (@wpallimport)

    Hey @cirda,

    I’m going to mark this as resolved since it has been a while. You can follow up in this thread with any questions.

    If anyone else has questions, please start a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how insert ID images to description post with wp all import plugin’ is closed to new replies.