Import galleries (5 posts)

  1. whoaloic
    Posted 2 years ago #

    I get WordPress galleries in my content.
    When I export posts, I get shortcode like this: [gallery columns="4" ids="767,768,769,770"].

    But when I import the short code is recognized as text. So I get a string "[gallery columns="4" ids="767,768,769,770"]" in my content.

    Is there a way to remedy this?

    Ideally, does somebody know how to import gallery images from a csv file to wordpress?


  2. CPK Web Solutions
    Plugin Author

    Posted 2 years ago #

    Hi Whoaloic

    Thanks for reporting this.

    I'm sure this used to work if you import exactly as exported. Look at the export file with notepad before opening in Excel and then compare with what it looks like after you close Excel.

    Another possible solution would be to use ' instead of ". Bit of a long shot.

    Best wishes


  3. whoaloic
    Posted 2 years ago #

    Yes, Indeed, it almost work.
    I get my gallery in the backend.
    But I get [gallery columns="4" ids="767,768,769,770"] in the front end.
    I have to update each post manually in order to make appear the gallery.

    Plus, it would be ideal that the WordPress default gallery identifies media by unique names instead of ID.
    For example: [gallery columns="4" ids="photo1.jpg,photo2.jpg,photo3.jpg,photo4.jpg"].

    I mean that when the admin fills the CSV file, it would be great if he could write the name of the file in the gallery column. Because, he could not guess the ID of media when the media upload.

  4. whoaloic
    Posted 2 years ago #

    I clarify:
    When I upload [gallery columns="4" ids="767,768,769,770"] in post_content columns, it works fine.
    But I have created a custom post field with ACF plugin.
    I retrieve this field in the CSV file "gallery_photos" and in in this file it does not work correctly (see previous message).

  5. CPK Web Solutions
    Plugin Author

    Posted 2 years ago #


    Ok. I'll see if anything can be done about that, but it may take a week or two before I have time.

    Best wishes


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP CSV
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.