'Custom Gutenberg Block Slider
I am currently trying to wrap my head around the new world of Gutenberg Block development and React components, which is all fairly new territory for me.
So far I have only managed to create a simple block with RichText, using the @wordpress/create-block tool.
However, my goal is to create a Slider Block, which requires me to be able to upload and preferably arrange the order of the images for the slider.
What I have found so far is that the MediaUpload component might head me in the right direction, though I have no clue what to do with this: https://github.com/WordPress/gutenberg/tree/trunk/packages/block-editor/src/components/media-upload
Maybe someone can point me in the right direction?
Solution 1:[1]
For that, you can use this plugin. May it's useful to you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Patel Mohip |