neutralbias
Forum Replies Created
-
Thank you very much, Sayontan, for your very quick and helpful reply. Alright, this makes sense. I’ll try to run a search-replace operation and insert a “style=…” attribute into all the legacy gallery shortcodes. I’m sure that will do the trick.
Have a great day! And thanks indeed for this lovely plugin.
Ah, I see, thank you very much for your kind support. I’ll give it a try.
- This reply was modified 3 years, 1 month ago by neutralbias.
I see, thank you, that’s a good point.
One question: Simply Gallery offers shortcodes, which look something like
[pgc_simply_gallery id="1234"]. So in contrast to the native gallery shortcode, the Simply shortcode doesn’t list all the images that are to be in the gallery, but it refers to the id of a gallery that has to be created beforehand.
Now, I could easily extract all native gallery shortcodes from all of my pages using some regex searches. And I could also write a simple script that replaces them all with the Simply shortcode and a specific Simply gallery ID.So what’s missing to fully automatize the conversion is a programmatical (or batch, or otherwise quick) way to create a new Simply gallery from a list of image ids, and getting the resulting Simply gallery id back. Do you think I might be able to achieve that with reasonable effort? If you could give me a few pointers on how to get started on that, I would be very grateful. Thank you!
- This reply was modified 3 years, 1 month ago by neutralbias.