• Resolved adnanmg

    (@adnanmg)


    Hi,

    I have a wp self hosted site with many wordpress galleries. I am trying to convert my site to Squarespace, but Squarespace does not support converting wordpress image galleries. How can I convert the wordpress galleries to regular thumbnails with image links?

    Thanks,

    Adnan

    • This topic was modified 4 years, 5 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • If there aren’t too many, open the page in your browser and View Source. Copy the HTML for the gallery into the editor to replace the (I assume it’s a shortcode) gallery.

    If there are a lot, code a plugin to loop through the posts and make that change through code instead of manually. Perhaps it could be a filter of the export plugin that replaces all shortcodes with their HTML as it is exported.

    I looked into the export code, and it turns out it is quite simple to do. I’m not sure why this is not provided as an option.

    Your plugin just needs one line:

    <?php
    /**
     * Plugin Name: Expand Shortcodes
     * Description: Expand shortcodes on export
     * Version: 1.0
     */
    add_filter( 'the_content_export', 'do_shortcode' );
    Thread Starter adnanmg

    (@adnanmg)

    Wow Joy, this worked for me! I was able to make a simple wp plugin using the code you provided, and it put html links in the xml that I exported. This was able to be read by squarespace’s import process. I am still working through that process of getting a new page setup, but I wanted to thank you for giving me this and also let you know that it worked.

    Much appreciated.

    • This reply was modified 4 years, 5 months ago by adnanmg.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Gallery to Image Links’ is closed to new replies.