WordPress.org

Forums

WP CSV
Import galleries (5 posts)

  1. whoaloic
    Member
    Posted 11 months ago #

    Hello,
    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?

    https://wordpress.org/plugins/wp-csv/

  2. CPK Web Solutions
    Member
    Plugin Author

    Posted 11 months 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

    Paul

  3. whoaloic
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months ago #

    Hi

    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

    Paul

Reply

You must log in to post.

About this Plugin

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

About this Topic

Tags

No tags yet.