跳到内容

Copy/Paste FlexContent Blocks for ACF

v0.4.3

Tekod lab. · 2024年11月24日 上架

Extension for Advanced Custom Fields plugin that allows copy/pasting layouts between pages or even sites.

正在使用
1,000+
评分
5.0 / 5
累计下载
1.4 万
最近更新
2026年11月9日
3 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

This plugin allows you to clone flexible content blocks (layouts) to another page or site.
The entire contents of block will be transferred, including repeater items and its contents.

It uses a regular clipboard to store content, so you can paste it to notepad application and use it later to populating other pages.

Usage

Simply install and activate the plugin. No settings available.

The plugin will add a new option “Copy layout” to the header of each layout, and new menu at the bottom of the flexible container.

Click on “Copy layout” option will copy the content of the block to the clipboard.
In the bottom menu on target page use “Paste layouts” option and new blocks will appear.
Nothing is saved unless you click the regular “Update” button.

Bottom menu contains “Copy all layouts” to copy the entire flexible container to the clipboard.

As a feature, this plugin will try to recognize the URLs in the pasted content and replace the source domain with the target one.
This is often required when moving blocks from a staging to a live environment to keep links local.

Limitations

This will not transfer media or posts.
Coping fields that use ID-s to refer to a content (such as: media images, links, relationship…) to another website may link the wrong resource to the field because posts/media on another site may have different ID-s.
In this case you must manually correct such fields after pasting and connect appropriate media/posts.

Only built-in field types are supported and tested.
Additional (extended) field types are likely to be copied as well, but without guarantees.

Credits

This plugin contains code form other GPLv2 projects, credits go to:
– https://www.acf-extended.com
– https://wordpress.org/plugins/acf-flexible-layouts-manager
– https://github.com/magicstickuk/Flexible-Content-Duplication

“ACF-extended” has similar feature, but it didn’t work on any of 20 sites I tested, probably because of the way how the flexible container is integrated into the projects.
So I created a solution that works for me and shared publicly with everyone with the same problem.

Contact

Please, send bug reports and feature requests to office@tekod.com

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums