Joy
(@joyously)
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.
Joy
(@joyously)
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' );
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 5 years, 11 months ago by
adnanmg.