Making Sure Photonic will not Break with Gutenberg
-
WP 5.0 is expected to drop on 6th December, and with it comes the Gutenberg editor. How does it impact you if you are using Photonic?
I will try to cover all possible scenarios:
Scenario 1: You have got Gutenberg and are using Photonic for the First Time
You have nothing to worry about. Just start using the “Photonic Gallery” block like you would use any other block.
Scenario 2: You have not got Gutenberg yet (you will later) and are using Photonic for the first time
Follow these steps:
- Go to the setting Photonic → Generic Options → Generic Settings → Custom Shortcode.
- Put in some value there, e.g.
photonic
. Do not usegallery
– every other word is fine. Save. - You are now ready to create galleries in your posts by using the “Add / Edit Photonic Galleries” button on your editor.
Scenario 3: You have got Gutenberg and you also have Photonic galleries on your site using a custom shortcode (i.e. not
gallery
)You are fine!
- If you want to edit old posts and you click “Convert to blocks” all your Photonic galleries will be preserved.
- For new posts you can use the “Photonic Gallery” block
Scenario 3: You have got Gutenberg and you also have Photonic galleries on your site using the
gallery
shortcodeThis needs a little more work:
- Go to the setting Photonic → Generic Options → Generic Settings → Custom Shortcode.
- Put in some value there, e.g.
photonic
. Do not usegallery
– every other word is fine. Save. - Now go to Photonic → Prepare for Gutenberg. Under the section “Am I using the Gallery Shortcode with Photonic?” you will see a list of posts where the
gallery
shortcode is being used for Photonic. - You can do one of the following:
- Click on “Replace Shortcodes” on individual posts. That will replace the
gallery
shortcode with what you set up in step 2 above. - Or, select a set of posts, click on “Bulk Actions”, pick “Replace Shortcode”, then click “Apply”. That will replace the
gallery
shortcode with what you set up in step 2 above for all selected posts.
It is advisable to back up your posts before you do the above.
- You can now use “Convert to blocks” without fear of losing your Photonic galleries. For new galleries you can use the “Photonic Gallery” block.
Please feel free to post queries for help.
- The topic ‘Making Sure Photonic will not Break with Gutenberg’ is closed to new replies.