Transforms ACF’s flexible content field’s layout list into a modal with image previews.
将ACF的灵活内容字段的布局列表转换为带有图像预览的模式。 p>
Image Conventions
图像约定 h4>
- The size of the image should be 732 x 300.
- 图片大小应为732 x 300。 li>
- They should be named based on the layout’s name (
text_block
) with underscores converted to dashes (text-block.jpg
). - 应根据版面名称(
text_block code>)命名,并将下划线转换为短划线( text-block.jpg code>)。 li>
ul>
Image Location
图片位置 h4>
Images should be placed in your theme.
图像应放置在主题中。
Be fault, images are located here: THEME/lib/admin/images/acf-flexible-content-preview
.
没错,图片位于此处: THEME / lib / admin / images / acf-flexible-content-preview code>。 p>Also note that you can filter this path, but it MUST be in your theme:
还请注意,您可以过滤此路径,但必须 strong>必须在您的主题中: p>add_filter( 'acf-flexible-content-preview.images_path', $path ); add_filter('acf-flexible-content-preview.images_path',$ path);
code> pre>
NOTE: The path should not have a trailing beginning or trailing slash!
注意 strong>:路径中不应包含尾随的开始或结尾的斜杠! p>Additionally, you could filter all keys and/or images:
此外,您可以过滤所有键和/或图像: p>
add_filter( 'acf-flexible-content-preview.images', $images ); add_filter('acf-flexible-content-preview.images',$ images);
code> pre>
Credit
信用 h4>
Credit largely goes to @BeAPI for their bea-beautiful-flexible plugin.
在很大程度上,@ BeAPI为其 bea-beautiful-flexible 插件提供了支持。
This plugin began using their plugin as a starting point.
这个插件开始以他们的插件为起点。 p>
Issues & Feature Requests
问题和功能请求 h4>
If you identify any errors or have an idea for improving the plugin, feel free to open an issue or create a pull request.
nofollow“>问题或创建提取请求。
Please provide as much info as needed in order to help resolving or approve your request.
请根据需要提供尽可能多的信息,以帮助解决或批准您的请求。 p>