I've never built a plugin before. I'm very new to WP in general, but I was wondering what the process of turning a custom post type and template I made into a plugin?
Here's the thing I'm trying to do.
I made a custom post type called "gallery" using ACF and CPTUI.
It's a masonry style gallery, with lightbox, that can contain mixed media content, such as videos, images, and external links (possibly iFrames though I haven't added that yet).
The user has a repeater field that they can add title, description, picture, link, and video to. If they upload a video, then it will display a soundless, looping video inside the gallery, just like it would an image. This is basically so mp4 files can be inserted into a library instead of gifs, for the purpose of being optimized, but also allowing motion graphics etc type work to be displayed alongside static work.
If there's a link, instead of opening the lightbox, it will open a new window with the linked page in it. This is so I can have a gallery with preview images of websites I've made, that when click, just open the website in a new tab etc.
I want to convert this into a plugin so that I can just insert multiple galleries wherever I want to, inside of a blog post using the WP post editor etc. Is this possible? How would I do this?