Support Forum
Hello,
I want to create a very huge data DB with tons of images (>10'000), like phonearena.com etc. But I don't see any reason to horse-fuck with each image uploading to WP Media Gallery, set theirs names, etc. I want just to upload all needed images as files to special folder and then show them at frontend (via Gutenberg or MB Views). Such method have many advantages: + much faster, no need to waste time with each file uploading; + much easy to update images just by uploading a new file instead of previous; + no garbage for each image at trash-like wp_posts & wp_postmeta DB tables; etc.
1) So, what CustomField type do you recommend to use to save a direct path to each image? Just text? Or URL? Or maybe you have some "image select" field which can work with direct files&folders (without annoying WP Media Gallery) and can show a previous?
1.1) If I will use images without [WP Media Gallery] - who will make a smaller version of images like "thumbnail/medium/large" - CDN will make it automatically by itself?
2) Does any image select CustomField support plugin [WP Media Folder] etc which still using WP Media but can organize images much better?
Hello,
1. You can use the field file
or image
to upload images to a custom folder. Read more in the documentation https://docs.metabox.io/fields/file/#custom-upload-folder
1.1. Then you cannot use the Media Library to manage images uploaded to the custom folder. And there isn't a feature to crop them to thumbnails as WordPress does.
2. Media fields (file or image) of Meta Box only support users to upload media files to WordPress. They d not support organize files. You can use a third-party plugin to do that.
All this is not what I need.
If I will upload images to website manually via ftp and then use MB CustomField like "string/url" to simply store image path - can I get this image and show it with WP gallery (zoom, next-prev, etc) at frontend with MB Views?
>> can I get this image and show it with WP gallery
No. As I understand, the WordPress gallery uses the image ID (attachment post type) to display images in the frontend. If you use the custom folder, the attachment post is not created so there are no IDs to add to the WordPress gallery.