I created a custom post type called ‘products’ and want to upload multiple images to a single product, similar to how it’s done in WooCommerce, but I’m unable to do so.
i tried the plugins but they are not working for me. i am using ocean wp free theme
2
Answers
You can use the ACF plugin to achieve the desired functionality. ACF includes a "Gallery" field, allowing you to upload multiple images. You can then retrieve the gallery field as needed.
For example:
I hope this helps!
Use the ACF (Advanced Custom Fields) plugin. It provides a "Gallery" field for uploading multiple images. Here’s how to display them:
This code retrieves and displays the gallery images.