{"id":414041,"date":"2024-11-24T08:00:00","date_gmt":"2024-11-24T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/cp-blocks-for-acf\/"},"modified":"2025-10-04T23:11:00","modified_gmt":"2025-10-04T23:11:00","slug":"cp-blocks-for-acf","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/cp-blocks-for-acf\/","title":{"rendered":"Copy\/Paste FlexContent Blocks for ACF"},"content":{"rendered":"<p>This plugin allows you to clone flexible content blocks (layouts) to another page or site.<br \/>\nThe entire contents of block will be transferred, including repeater items and its contents.<\/p>\n<p>It uses a regular clipboard to store content, so you can paste it to notepad application and use it later to populating other pages.<\/p>\n<h3>Usage<\/h3>\n<p>Simply install and activate the plugin. No settings available.<\/p>\n<p>The plugin will add a new option \u201cCopy layout\u201d to the header of each layout, and new menu at the bottom of the flexible container.<\/p>\n<p>Click on \u201cCopy layout\u201d option will copy the content of the block to the clipboard.<br \/>\nIn the bottom menu on target page use \u201cPaste layouts\u201d option and new blocks will appear.<br \/>\nNothing is saved unless you click the regular \u201cUpdate\u201d button.<\/p>\n<p>Bottom menu contains \u201cCopy all layouts\u201d to copy the entire flexible container to the clipboard.<\/p>\n<p>As a feature, this plugin will try to recognize the URLs in the pasted content and replace the source domain with the target one.<br \/>\nThis is often required when moving blocks from a staging to a live environment to keep links local.<\/p>\n<h3>Limitations<\/h3>\n<p>This will not transfer media or posts.<br \/>\nCoping fields that use ID-s to refer to a content (such as: media images, links, relationship\u2026) to another website may link the wrong resource to the field because posts\/media on another site may have different ID-s.<br \/>\nIn this case you must manually edit such fields and connect appropriate media\/posts.<\/p>\n<p>Only built-in field types are supported and tested.<br \/>\nAdditional (extended) field types are likely to be copied as well, but without guarantees.<\/p>\n<h3>Credits<\/h3>\n<p>This plugin contains code form other GPLv2 projects, credits go to:<br \/>\n \u2013 https:\/\/www.acf-extended.com<br \/>\n \u2013 https:\/\/wordpress.org\/plugins\/acf-flexible-layouts-manager<br \/>\n \u2013 https:\/\/github.com\/magicstickuk\/Flexible-Content-Duplication<\/p>\n<p>\u201cACF-extended\u201d has similar feature, but it didn\u2019t work on any of 20 sites I tested, probably because of the way how the flexible container is integrated into the project.<br \/>\nSo I created a solution that works for me and shared publicly with everyone with the same problem.<\/p>\n<h3>Contact<\/h3>\n<p>Please, send bug reports and feature requests to <a href=\"mailto:office@tekod.com\" rel=\"nofollow ugc\">office@tekod.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Extension for Advanced Custom Fields plugin that allows copy\/pasting layouts between pages or even sites.<\/p>\n","protected":false},"author":65,"featured_media":414042,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Copy\/Paste FlexContent Blocks for ACF - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Extension for Advanced Custom Fields plugin that allows copy\/pasting layouts between pages or even sites."},"footnotes":""},"categories":[1],"tags":[1302,2002,1319,3079,1359],"class_list":["post-414041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-acf","tag-copy","tag-flexible","tag-layout","tag-paste"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/414041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=414041"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/414041\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/414042"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=414041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=414041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=414041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}