Copying content from my other websites

Use a syndication (feed) plugin such as https://wordpress.org/plugins/syndicate-press/ in your subsidiary sites to pull in posts from the main site. You can target specific categories of post – so this would help you to pull in just the posts that would be relevant to the subsidiary site. This will help visitors to the subsidiary sites … Read more

On save_post need to wp_insert_post and save partent post id to child post and child post id to parent post

Here’s an updated version of your code: add_action(‘save_post’, array($this, ‘save_post_type_example_meta_boxes’)); function save_post_type_example_meta_boxes($post_id) ………. if (…) { $new_custom_post = array( ‘post_title’ => $title, ‘post_content’ => ”, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_type’ => ‘custom_post_type’, ‘meta_input’ => array( ‘meta_1’ => ‘X’, ‘parent_post_id’ => $post_id, ), ); // Prevent this action from running twice. remove_action( ‘save_post’, [ … Read more

Add Cancel Button to a Custom Meta Box

I ended up using this: <a class=”clear_button hide-if-no-js button-cancel” title=”clear” data-clear style=”text-decoration:underline;”>Clear</a> It does the job. I was hoping for something more “WordPressy” but don’t see a metabox cancel function.