bobbingwide / oik-clone

Clone content between sites
https://www.oik-plugins.com/oik-plugins/oik-clone-clone-your-wordpress-content/
GNU General Public License v2.0
5 stars 0 forks source link

wp_block posts are not immediately clonable using the [clone] shortcode #48

Open bobbingwide opened 4 years ago

bobbingwide commented 4 years ago

The wp_block post type is used for Reusable blocks. In order to clone a reusable block you need to edit the block and use Clone on update. Once that's been done then you can use the [clone] shortcode on a parent post. Before that the wp_block post is displayed with n/a. image

Explanation

Posts of type wp_block do not have any post meta data, until they've been cloned. So OIK_clone_tree_node::get_post_meta() can return null. Hence the n/a.