A WordPress plugin that adds image previews to ACF Flexible Content layouts in the WordPress admin. This plugin allows you to dynamically manage layout previews by uploading images for each layout type and adjusting the size of preview images directly from the WordPress admin settings.
- Adds image previews to ACF Flexible Content layouts in the admin panel.
- Easily upload and manage preview images for each layout type.
- Adjust the width and height of the preview images from the settings page.
- Dynamic field names: Add and remove layout field names and preview images dynamically.
- Integrated with the WordPress media uploader for easy image selection.
-
Download the plugin:
- Clone the repository or download the latest release.
git clone https://github.com/yourusername/acf-flexible-preview-images.git
-
Upload to WordPress:
- Upload the plugin folder to the
/wp-content/plugins/
directory.
- Upload the plugin folder to the
-
Activate the Plugin:
- In your WordPress admin, go to Plugins > Installed Plugins and activate ACF Flexible Content Preview Images.
- Go to ACF Preview Images in the WordPress admin sidebar.
- Add the ACF Flexible Content layout names (field names) and upload corresponding preview images for each.
- Adjust the image size (width and height) as desired.
- Save the changes.
- When adding ACF Flexible Content layouts, hover over the layout options to see the corresponding preview images.
- Image previews are dynamically displayed based on the field names added in the settings.
- Add Layout Field Name: Add the name of each layout as it appears in ACF.
- Upload Preview Image: Select or upload a preview image for each layout.
- Set Image Size: Adjust the width and height of the preview images directly from the settings page.
- WordPress Version: 5.0 or higher
- ACF Pro: This plugin works with ACF Pro (Advanced Custom Fields) Flexible Content Field.
git clone https://github.com/yourusername/acf-flexible-preview-images.git
Contributions are welcome! Please submit issues or pull requests via the GitHub repository.
This plugin is open-source and licensed under the MIT License. See the [LICENSE] file for more details.
Developed by Agency Habitat